[fpc-devel] (class) helper questions

Sven Barth pascaldragon at googlemail.com
Wed Mar 9 09:19:13 CET 2011


Am 09.03.2011 08:39, schrieb Florian Klaempfl:
> 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 :)

Hehe *evil laughter*

Fun aside...

As you are one of the Devs who see a clean Object Pascal as a good thing 
to go for (I do as well), what syntax would you choose if you'd be the 
one to implement helper types (independant from Borland's implementation 
and my suggestion)?

Regards,
Sven



More information about the fpc-devel mailing list