[fpc-devel] FPC_HAS_CONSTREF

Hans-Peter Diettrich DrDiettrich1 at aol.com
Fri Oct 22 12:17:07 CEST 2010


Jonas Maebe schrieb:

>> What is "constref",
> 
> A "const" parameter that is always passed by reference.

What's the guarantee, that (in detail external) subroutines will honor 
the "const" attribute?

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?

DoDi




More information about the fpc-devel mailing list