From 2d3ab68c60e8bacf9e0efe403895e7065ef683be Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Thu, 12 Mar 2015 15:35:13 +0100 Subject: Update Interoperability Tutorial Language cleaned up by the technical writers xsipewe and tmanevik from Combitech. Proofreading and corrections by Hans Bolinder. --- system/doc/tutorial/example.xmlsrc | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'system/doc/tutorial/example.xmlsrc') diff --git a/system/doc/tutorial/example.xmlsrc b/system/doc/tutorial/example.xmlsrc index f87eb217e9..e205ca189e 100644 --- a/system/doc/tutorial/example.xmlsrc +++ b/system/doc/tutorial/example.xmlsrc @@ -4,7 +4,7 @@
- 20002013 + 20002015 Ericsson AB. All Rights Reserved. @@ -31,16 +31,25 @@
Description -

A common interoperability situation is when there exists a piece of code solving some complex problem, and we would like to incorporate this piece of code in our Erlang program. Suppose for example we have the following C functions that we would like to be able to call from Erlang.

- -

(For the sake of keeping the example as simple as possible, the functions are not very complicated in this case).

-

Preferably we would like to able to call foo and bar without having to bother about them actually being C functions.

+

A common interoperability situation is when you want to incorporate + a piece of code, solving a complex problem, in your Erlang + program. Suppose for example, that you have the following C + functions that you would like to call from Erlang:

+ +

The functions are deliberately kept as simple as possible, for + readability reasons.

+

From an Erlang perspektive, it is preferable to be able to call + foo and bar without having to bother about that + they are C functions:

 % Erlang code
 ...
 Res = complex:foo(X),
 ...
-

The communication with C is hidden in the implementation of complex.erl. In the following chapters it is shown how this module can be implemented using the different interoperability mechanisms.

+

Here, the communication with C is hidden in the implementation + of complex.erl. + In the following sections, it is shown how this module can be + implemented using the different interoperability mechanisms.

-- cgit v1.2.3