> Marco van de Voort wrote:
> >
> > You can't. This is more like trying to do generics with macro's on C level.
> > And since FPC macro's afaik have no parameter syntax, this is not possible.
> >
> >   
> Hmm, what about (+/-):
> 
> type_of_elts_entry(type_ptr(integer(ary.elts ) + i * 
> sizeof(type_of_elts_entry ) )^ )

The original had the type as a variable, and casted to it later. That is
different.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to