[fpc-devel] FPC 2.3.1 SVN 8427: new compilation error.

Micha Nelissen micha at neli.hopto.org
Wed Sep 12 09:47:44 CEST 2007


Michael Schnell wrote:
> Theoretically a write to the property _could_ be compiled into a call to 
> the set method. But with that the called function would need code to 
> detect if the var parameter is a property and act accordingly. Though a 
> nice feature, IMHO it would make things so complicated that it does not 
> make much sense.

It doesn't have to detect, the compiler would generate a temp like:

init(temp);
get(temp);
func(temp);
set(temp);
destroy(temp);

Micha



More information about the fpc-devel mailing list