[fpc-pascal] Interface syntax: Is possible don't use specialize in mode objfpc?
Maciej Izak
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>:
> var
>> 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:
http://docs.elementscompiler.com/Platforms/Cocoa/StorageModifiers/
> 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")
>
> === code end ===
>
no difference ;) contrary to the principle of KISS
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150716/e1a9ed07/attachment.html>
More information about the fpc-pascal
mailing list