Subject: RE: SDL-News: Procedure call of a value returning procedure
From: laurent DOLDI (laurent.doldi#wanadoo.fr)
Date: Mon Jan 11 1999 - 09:08:26 GMT
The originator of this message is responsible for its content.
-----From laurent DOLDI <laurent.doldi#wanadoo.fr> to sdlnews -----
Here is more explaination, because I am afraid that some people have
not understood my previous email:
If you declare an SDL prodedure such as:
PROCEDURE proc1; FPAR IN/OUT p1 Integer; RETURNS Boolean; ...
then you can call it in two different ways:
1. Either in a TASK write: x:= CALL proc1(y)
2. Or in a PRODECURE CALL symbol write: proc1(y, x)
For sure solution 1 is easier to understand.
At 12:00 10/01/99 +0530, you wrote:
>The originator of this message is responsible for its content.
>-----From Ramana Bhamidipati <venkatrb#future.futsoft.com> to sdlnews -----
>>>>In that case you can also write in a PROCEDURE CALL SDL symbol:
>>>>>(but this is less easy to read than using a TASK).
>It is true that one can go in for this type of statement, but what I would
like to add
>is that the statement
>ReturnVal := CALL XYZ(a,b,c)
>will be more useful when one declares new variables inside the procedures
( that can be
>INTEGERS, CHAR's , Structures etc.) and would like to be available at the
>but ofcourse the OUT statement will work over there, but when a RETURN is
used one can
>get back the value into a different variable altogether at the calling point!
>Venkata Ramana Bhamidipati
>Senior Software Engineer,
>Future Software Pvt. Ltd.,
>Ph :+91-44-433 0550 [Extn -313/312/310]
>Fax : 4344157, 4834551, 4834661
TransMeth - Formal Methods applied to Telecommunications
18, rue des SAULES
31400 TOULOUSE FRANCE
Tel. +33 (0)5 61 25 59 54
Mobile +33 (0)6 80 26 62 31
-----End text from laurent DOLDI <laurent.doldi#wanadoo.fr> to sdlnews -----
For help, email "majordomo#sdl-forum.org" with the body of your email as:
or (iff this does not answer your question) email: owner-sdlnews#sdl-forum.org
This archive was generated by hypermail 2a23 : Sun Jun 16 2013 - 10:41:40 GMT