[fpc-pascal] Interface syntax: Is possible don't use specialize in mode objfpc?
hnb.code at gmail.com
Thu Jul 16 22:54:23 CEST 2015
2015-07-16 22:40 GMT+02:00 Sven Barth <pascaldragon at googlemail.com>:
>> X: strong TDictionary<weak TList<Integer>, string>;
> Prefixed modifiers are the /worst/ you can do for Pascal.
it is already being done by introducing "specialize" keyword.
I have totally different opinion :) for me it is beautiful:
> In the end your code above will look like this in mode ObjFPC:
> === code begin ===
> 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")
> === code end ===
no difference ;) contrary to the principle of KISS
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal