Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Oddity
Mon, Oct 24 2016 9:28 AMPermanent Link

Matthew Jones

In traditional pascal, a function has two ways to return the result. Indeed, I think it was only one way - assigning to the function name. And Delphi added "Result" as an option. Never really had cause to think of this until today when I looked to convert a parser to Elevate Web Builder and it complained at the original form. I guess it shows how things have shifted that Result is the norm nowadays.

--

Matthew Jones
Tue, Oct 25 2016 1:54 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< In traditional pascal, a function has two ways to return the result. Indeed, I think it was only one way - assigning to the function name. And Delphi added "Result" as an option. Never really had cause to think of this until today when I looked to convert a parser to Elevate Web Builder and it complained at the original form. I guess it shows how things have shifted that Result is the norm nowadays. >>

I'm not sure if it's the "norm", but it's how EWB does it. Wink

The shift away might have something to do with things like function/procedure references confusing the compiler, however.  It would certainly confuse EWB's compiler because it doesn't require you to preface function/procedure references with an @ character.

Tim Young
Elevate Software
www.elevatesoft.com
Image