[fpc-devel] (patch) An attempt to improve assignments/functionresult reuse

Florian Klaempfl florian at freepascal.org
Wed Dec 12 09:15:59 CET 2007


Thorsten Engler schrieb:
>>>> Are you sure with the strings?
>>> Yes. Any function that returns a string is supplied with one more 
>>> argument than it was declared. After calling the function, register 
>>> eax (which is used to contain the non-parameter result) is not used.
>>> Here is a simple example:
>> I'am not sure but there might be a reason why we did it this way.
> 
> For what it's worth, I noticed that difference as well. The following code
> snippet describes Delphi's behavior (in regards to passing results as
> parameters and limited to types covered by RTTI):
> 

Ok, so I guess we can change this. Anybody volunteer to implement it :)?



More information about the fpc-devel mailing list