Wiki
Clone wikiDWScript / LanguageTypes
- summary DWScript Language Data Types
- sidebar TableOfContents
- [BaseTypes Base Types] (Integer, Float, String, Boolean, etc.)
- [Enumerations]
- [StaticArrays Static Arrays]
- [DynamicArrays Dynamic Arrays]
Classes
Classes all derive from the root TObject class and follow the classic Delphi syntax.
Named constructors are supported, as well as class methods, meta-classes, virtual methods, properties and destructors. Properties can optionally be array properties, and can feature an explicit index.
Visibilities are private, protected, public and published.
Classes can implement Interfaces.
You can also declare class methods with "method" as in the Oxygene language, in addition to "procedure" and "function".
Records
Records are supported using the classic Delphi syntax.
Methods and properties of records are supported too, including "class" methods.
Interfaces
Interfaces are supported using the classic Delphi syntax.
Interfaces can define properties, which are syntax sugar to their methods.
Delegates
Delegates are supported and unified.
Updated