Hallo Martin,

Du schriebst am Thu, 21 Nov 2013 08:32:57 +0100:

> > procedure strfunc(): msestring;
...
> >     result:= result + 'koko';

> I do not like the not clear definition of 'result', is it a 'var' or
> 'out' variable? What happens here:

It could be considered an "automatic" local variable of the function return
type used to hold the function result.

> I think it is worth the additional two lines for the variable
> declaration. I do not like much the terminating 'return' statement, but
...
> end:= result;
> "
> probably is too exotic. ;-)

THen, what about using the function name as a pseudo variable to pass out
the resukt value?

(Oops - that's exactly what original Pascal did...)

-- 
-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------



------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to