> On Apr 15, 2016, at 5:34 PM, Tony Whyman <[email protected]> 
> wrote:
> 
> Just remembered, FPC also supports macros - see 
> http://www.freepascal.org/docs-html/prog/progse5.html
> 
> I haven't tested it, but you should be able to do
> 
> {$MACRO On}
> 
> {$DEFINE aClassBObject:=TClassB(FClassBObject) }
> 
> and then use aClassBObject instead of the coercion.

I remember trying to doing pre-parser type things using macros but the think 
the conclusion is they don’t work by just replace text like in C.

I’m trying an example like this but getting errors and even crashing the 
compiler (seg faults).

Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to