> 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:/
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
> 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;