RE: [fpc-pascal]use of funct identifier in funct body

2003-09-03 Thread Peter Vreman
> If i know good, the result variable exists in function without declare it. > Use result instead function name. That is correct. But the result keyword is only supported in Delphi and ObjFpc modes ___ fpc-pascal maillist - [EMAIL PROTECTED] http:/

RE: [fpc-pascal]use of funct identifier in funct body

2003-09-03 Thread Balázs Csaba
03 8:15 AM > To: [EMAIL PROTECTED] > Subject: Re: [fpc-pascal]use of funct identifier in funct body > > > > Consider two implementations of the same function: > > > > Implementation 1 (the old way): > > > > function num_listing (n : word) : ansistr

Re: [fpc-pascal]use of funct identifier in funct body

2003-09-02 Thread Peter Vreman
> Consider two implementations of the same function: > > Implementation 1 (the old way): > > function num_listing (n : word) : ansistring; > var i : word; num : string; result : ansistring; > begin > result := ''; > for i := to n do begin > str (n, num); > result := result + num; end;