[fpc-pascal] [OT] sealed?

Sven Barth pascaldragon at googlemail.com
Tue Oct 8 12:12:40 CEST 2013


Am 08.10.2013 09:12 schrieb "Mark Morgan Lloyd" <
markMLl.fpc-pascal at telemetry.co.uk>:
>
> Sven Barth wrote:
>>
>> On 07.10.2013 19:29, silvioprog wrote:
>>>
>>> Hello,
>>>
>>> I was surfing the internet and came across this structure Delphi:
>>>
>>>
>>> TJSONPair=  class  sealed(TJSONAncestor)
>>>
>>>
>>> So, what is this?
>>
>>
>> Simple: You are not allowed to create child classes of sealed classes
(the compiler enforces this). FPC supports this since 2.4.2.
>
>
> Does it prevent the creation of class helpers?

At least not in FPC. AFAIK I didn't test whether Delphi forbids it...

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131008/19b66552/attachment.html>


More information about the fpc-pascal mailing list