[fpc-devel] (class) helper questions
Florian Klaempfl
florian at freepascal.org
Wed Mar 9 08:39:52 CET 2011
Am 09.03.2011 02:17, schrieb Paul Ishenin:
>> 4. The syntax that was introduced by Borland is not very pascalish in my
>> opinion. So I'd like to change the syntax for mode ObjFPC a bit (sadly
>> this won't simplify the parser anymore because of the Delphi
>> compatibility).
>>
>> Delphi syntax:
>>
>> TypeIdentifier = class|record helper(ParentHelper) for ExtendedType
>>
>> Proposed FPC syntax:
>>
>> TypeIdentifier = helper(ParentHelper) for class|record ExtendedType
>>
>> What do you think? Maybe also the "class|record" part can be left out,
>> because this part is not saved in the objectdef and can be determined by
>> the compiler automatically.
>
> I always think that if there is no need to create an incompatibility -
> better to not create it.
For me it's one of the "implementor decides" cases :)
More information about the fpc-devel
mailing list