[fpc-devel] [] property overloads

Ryan Joseph genericptr at gmail.com
Tue Jul 9 18:11:39 CEST 2019



> On Jul 9, 2019, at 12:09 PM, Ben Grasset <operator97 at gmail.com> wrote:
> 
> It works for constref if you use {$VARPROPSETTER ON}.
> 
> The docs for that directive are slightly incorrect, I just noticed, also:
> 
> https://www.freepascal.org/docs-html/current/prog/progsu121.html
> Where it says "Enable use of var/out/const parameters for property setters", it should say "Enable use of var/out/constref parameters for property setters", because "const" is always allowed, and does not *guarantee* by-reference passing the way "constref" does.
> 

Why does that require a special switch? Also, I thought it was determined that allowed “out” in array properties was a bug?

Regards,
	Ryan Joseph



More information about the fpc-devel mailing list