> On Jul 9, 2019, at 12:09 PM, Ben Grasset <operato...@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

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to