Re: Parameters of the Call elementary action

Andreas Kraft (kraft@fokus.gmd.de)
Fri, 11 Apr 1997 22:20:04 +0200 (MET DST)

Hello,

On Fri, 11 Apr 1997, Emmanuel BEUQUE wrote:

> À (At) 20:19 +0200 10/04/97, Klaus Hofrichter écrivait (wrote) :
> >C. THEOT (CCETT) (Tel 99124410) wrote:
> >>
> >> Which of the two following solutions is the correct one, according to :
> >> 1/ what is actually written in the standard,
> >> 2/ what you remind from discussions in the past, for those who took part
> >>to them.
> >>
> >> Q: What is the correct way to return a value back from a Program ?
> >>
> >> Solution 1:
> >> In IS, parameters of the Call action are now both In and Out.
> >> ...
> >>
> >> Solution 2:
> >> In IS, parameters of the Call action are now only In.

I think that the parameters should be treated the same way as the
"var" type of variable parameters in the Pascal programing language.
So, in my opinion, solution 1) is it.
It is the responsibility of the implementor to provide "well behaving"
procedures. The interface of the procedure (in and out variables) has to
be defined anyway. If the definition of a particular procedure says, that
always the last parameter will get the result of the procedure call, then
that's it.

But procedures are evil, anyway ;-)

Best regards,

Andreas

----
Andreas Kraft "You can get what you
GMD FOKUS want and still not be
Hardenbergplatz 2 email: akr@fokus.gmd.de very happy."
D-10623 Berlin voice: +49 30 25499 232
Germany fax: +49 30 25499 202 -- Cerebus