[fpc-devel] Type Helper and Array

Ondrej Pokorny lazarus at kluug.net
Sun Jan 3 11:29:04 CET 2016

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:

   TVector = array of Single;

   TVectorHelper = Type Helper for TVector
     procedure Add;

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160103/962de196/attachment.html>

More information about the fpc-devel mailing list