What about returning by var?

function f(t: T):var T; or function f(t: T):out T; or function f(t:
T):T;var;

in delphi you must return record by pointer or var/out parameter to avoid
copying


On Fri, Nov 22, 2013 at 7:09 PM, Martin Schreiber <[email protected]>wrote:

> On Friday 22 November 2013 18:52:32 Ivanko B wrote:
> > How looks the call of the function?
> > ======================
> > Smth like in Python:
> >
> > (var1,var2):= MultResFunc(arg1,arg2);
>
> I think the main reason for functions are expressions and subroutine
> parameters. Use a record (-> object in MSElang) in order to return multi
> value function results or out parameters.
> "
>  MultResFunc(arg1,arg2,var1,var2);
> "
>
> Martin
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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