[fpc-pascal] Interface syntax: Is possible don't use specialize in mode objfpc?

Florian Klämpfl florian at freepascal.org
Sun Jul 19 21:36:51 CEST 2015


Am 16.07.2015 um 22:40 schrieb Sven Barth:
> 
> In the end your code above will look like this in mode ObjFPC:
> 
> === code begin ===
> 
> var
>   X: specialize SmartObj<specialize TDictionary<specialize WeakObj<specialize TList<Integer> >,
> string> >;
> // the spaces between the "> >" are added, because I don't know yet whether I'll be able to deal
> with the fact that the scanner always converts ">>" to "shr" (and "<<" to "shl")

Lucky you that pascal does not allow inline type declarations like:

var
X: specialize SmartObj<specialize TDictionary<specialize WeakObj<specialize TList<-32768..$10000>>
2> >,string> >;



More information about the fpc-pascal mailing list