On Thursday 21 November 2013 10:03:14 Michael Schnell wrote: > > Slight Advantage of "Result": > > procedure strfunc(x: Boolean): msestring; > begin > Result := 'The string result'; > if x then > Result := 'Not The string result'; > Result := '>>>' + Result + '<<<' > end; > > Here you don't need to define a variable for the intermediate value. > " sub strfunc(x: boolean): msestring; var result: msestring; begin result:= 'The string result'; if x then result:= 'Not The string result'; end; result:= '>>>' + Result + '<<<'; end:= result; " I assume there is an implicit intermediate variable for string concatenation or performance improvement anyway or the compiler can optimize away the local 'result' variable.
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

