[fpc-devel] FPC_HAS_CONSTREF
Jonas Maebe
jonas.maebe at elis.ugent.be
Fri Oct 22 16:24:43 CEST 2010
On 22 Oct 2010, at 15:09, Martin wrote:
> On 22/10/2010 12:28, Jonas Maebe wrote:
>>
>>> AFAIK "constref" was invented for passing values to external subroutines, that expect a reference. In how far does "constref" affect the *caller*, in contrast to e.g. "var"? Can constref pass properties, which are not allowed as var parameters?
>>
>>
>> Right now it's allowed (if the property uses a getter, the getter is called and its result is put into a temp location whose address is passed), but I think that's a bug in the implementation.
>
> Why?
Because it's not possible to pass a reference to a property.
Jonas
More information about the fpc-devel
mailing list