2,963
edits
(→11.0) |
(→11.0) |
||
Line 6: | Line 6: | ||
Version 11.0 was released October 2006. It introduced [[object-oriented programming]] extensions designed to work like [[.NET]] and based technologically on the existing [[namespace]]s. The primary new features were classes, instances (objects), and interfaces, supporting inheritance, access control, and constructors and destructors. Instances could be placed in arrays, and [[empty]] arrays could store the class of an instance in the [[prototype]]. When instantiated (for instance by taking the [[First]] element of an empty array), a prototype object would be created using the class's [[niladic]] constructor, if present. Classes could interact with namespaces by importing their functions as methods. Dyalog's Windows GUI framework, already based on .NET classes, was integrated with the new Dyalog classes. | Version 11.0 was released October 2006. It introduced [[object-oriented programming]] extensions designed to work like [[.NET]] and based technologically on the existing [[namespace]]s. The primary new features were classes, instances (objects), and interfaces, supporting inheritance, access control, and constructors and destructors. Instances could be placed in arrays, and [[empty]] arrays could store the class of an instance in the [[prototype]]. When instantiated (for instance by taking the [[First]] element of an empty array), a prototype object would be created using the class's [[niladic]] constructor, if present. Classes could interact with namespaces by importing their functions as methods. Dyalog's Windows GUI framework, already based on .NET classes, was integrated with the new Dyalog classes. | ||
New [[Quad name]]s were added to support object-oriented programming: the [[system function]]s <source lang=apl inline>⎕NEW</source>, <source lang=apl inline>⎕CLASS</source>, <source lang=apl inline>⎕INSTANCES</source>, and <source lang=apl inline>⎕DF</source>, and [[system variable]]s <source lang=apl inline>⎕BASE</source> and <source lang=apl inline>⎕THIS</source>. Additionally, system functions <source lang=apl inline>⎕FIX</source> and <source lang=apl inline>⎕SRC</source> were added to support namespace scripts. | |||
Dyalog 11.0 also included primitive extensions: | Dyalog 11.0 also included primitive extensions: |