[fpc-devel] class abstract, class sealed implementation. please review.

Alexander Klenin klenin at gmail.com
Mon Oct 19 10:59:21 CEST 2009


On Mon, Oct 19, 2009 at 19:35, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
> On 17 Oct 2009, at 08:22, Paul Ishenin wrote:
>
>> Alexander Klenin wrote:
>>>
>>> 3) This patch introduces new keyword -- what about backwards
>>> compatibility? The code like:
>>>  type T = class sealed: Boolean; end;
>>> will stop compiling after the patch. Maybe it is better to use another
>>> syntax?
>>>
>> Same with any other keywords. If we want to compile delphi projects then
>> we need to support delphi syntax.
>
> Are they real keywords in Delphi? E.g., a lot of modifiers such as "default"
> and "register" are not keywords. You can perfectly declare variables of
> procedures with these names.
>

This is not the question of terminology (though I think the proper
term in this case is "non-reserved keyword"), but of the fact that
some programs that compiled previously will stop compiling after that patch.

-- 
Alexander S. Klenin



More information about the fpc-devel mailing list