[fpc-pascal] Proper preprocessor?
Ryan Joseph
ryan at thealchemistguild.com
Sat Jun 23 04:30:49 CEST 2018
> On Jun 23, 2018, at 3:13 AM, Florian Klämpfl <florian at freepascal.org> wrote:
>
> {$macro on}
>
> {$define TypeStr:=specialize _TypeStr}
>
> begin
> Writeln(TypeStr<TMyRecord>);
> end.
>
>
> ;)
You have a good sense of humor about it at least. :)
So you can in fact print types, albeit with a more verbose syntax and by using another meta-programming tactic, e.g. generics.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list