On 02.01.2016 20:41, Mathias wrote:
Does "Type Helper" only with standard types?
The class itself it compiles without errors.
But when you call, there is an error message.

See link, there the code and the problem is described. ("Illegal qualifier")

http://www.lazarusforum.de/viewtopic.php?f=10&t=9286

Type helpers work well with arrays without bounds:

type
  TVector = array of Single;

  TVectorHelper = Type Helper for TVector
  public
    procedure Add;
  end;

I cannot say if the array with bounds case is a bug or feature.
Delphi doesn't support either of them (XE2 tested).


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

Reply via email to