alore icon indicating copy to clipboard operation
alore copied to clipboard

Support final classes

Open JukkaL opened this issue 14 years ago • 1 comments

Support final class modifier that makes it impossible to inherit from a class. Also make built-in types Int, Str, etc. final. This removes the special status of the built-in types (currently they are the only classes you cannot inherit from).

Example:

final class Foo
  ...
end

class Bar is Foo    -- Error
end

JukkaL avatar Oct 07 '11 08:10 JukkaL

Alternatively, use the keyword sealed instead of final.

JukkaL avatar Oct 12 '11 16:10 JukkaL