[fpc-devel]Some property-wise inconvenience

Aleksey V. Vaneev picoder at sbis.komi.ru
Wed Jan 23 14:01:27 CET 2002


Hello,

  Just noticed some difficulty in property's "array of something"
  support.

  For example, if I've declared something like:

type
   T = class
   protected
     arr1: array of Double; (or ^Double);
   ...
   
I cannot use something like this:

   public
     property arr [i: LongInt]: Double read arr1;

Of course, I can use function instead, but that is not what I'm for.
Firstly, accessing array this way will be much slower, and
secondly, by declaring property in such a way I just wanted to warn
user that this array is read-only (BTW, with single variables this
works really nice).
     
Best regards,
 Aleksey                          mailto:picoder at sbis.komi.ru






More information about the fpc-devel mailing list