On 05/03/2020 08:24, Ryan Joseph via fpc-pascal wrote:
> Yes, it's a temporary variable but doesn't it make sense to give an error 
> because the property is read only? It's basically a no-op like it is now and 
> defeats the purpose of read-only properties. It also creates a nasty bug 
> because the programmer thinks they've written to something but they actually 
> didn't.
> 
> Can we consider changing this behavior?

I think there is already an open bug report for this.


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

Reply via email to