On 14 Mar 2009, at 09:16, dmitry boyarintsev wrote:

writing a property directly in the field is a hack

No, it's guaranteeing future compatibility, because by using a property you ensure that you can later on replace the setter with a procedure if necessary, without breaking existing source code (at least in FPC 2.3.1; FPC 2.2.x misses several checks, allowing you to do all sorts of things with properties directly mapped to fields that should not be possible).


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to