Re: [fpc-pascal] Funny bug with function result

2005-01-07 Thread Peter Vreman
> FYI. I know, assigning Result to Result on end of function is really not > usefull (it is my error), but why FPC is confused from this action and > returned result is bad? > > On Delphi is all OK if this line exists (and is removed by code > optimalization) Please submit a bug with example code

[fpc-pascal] Funny bug with function result

2005-01-07 Thread Lukas Gebauer
FYI. I know, assigning Result to Result on end of function is really not usefull (it is my error), but why FPC is confused from this action and returned result is bad? On Delphi is all OK if this line exists (and is removed by code optimalization). --- Forwarded message follows --- Kom