Project

General

Profile

Feature #1823

Feature #1608: Integrate Doomsday Script

Subclassing in Doomsday Script

Added by skyjake almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Enhancement
Target version:
Start date:
2014-06-16
% Done:

100%

Tags:

Description

Doomsday Script needs to have a mechanism to derive instances from class objects. For instance, the functions for manipulating a specific type of object should be put in a shared class object.

In practice, this can be a very weakly-typed OO system: classes and instances are both records, and can be used interchangeably.

  • Member operator needs to look up symbols from superclasses.
  • Instantiating from a record using the call operator.
  • Calling a constructor automatically.

Also available in: Atom PDF