Adriaan van Os wrote:
I agree with Frank that "Result" should behave as in Delphi and it does consistently behave there the way it was designed to,
As for the Delphi-style implicitly declared `Result', I completely agree with you and Frank. But we also have the ISO10206 feature of an explicitly declared result variable with a freely chosen name. _And_ until gpc-20041218, we were able to use it in a way that was IMO significantly better than defined by the standard. I think we should get back there.
although the example shows that the whole idea of an "unnamed" Result identifier is in itself a poorly designed language feature. Obviously, not much thought went into it.
Indeed. I suppose this is the reason -- or one reason -- why Delphi programmers usually try to avoid local sub-routines. ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193