Magik (programming language): Difference between revisions

Content deleted Content added
Undid revision 507176476 by 220.225.24.37 (talk)
m General fixes / CHECKWIKI fixes using AWB
Line 1:
{{primarysourcesprimary sources|date=January 2008}}
 
'''Magik''' is an [[object-oriented programming]] language that supports [[multiple inheritance]], [[polymorphism (computer science)|polymorphism]] and is [[dynamic typing|dynamically typed]]. It is provided by GE Energy as part of its [[Smallworld]] technology platform and was designed from the outset to implement complex applications for enterprise utilities such as power distribution and telecommunications.
Line 50:
 
;Objects
Objects are implemented in Magik using exemplars. Exemplars have similarities to classes in other programming languages such as [[Java (programming language)|Java]], but with important differences. Magik supports multiple inheritance, and [[Mixin|mixinsmixin]]s (which implement functionality with no data). New instances are made by cloning an existing instance (which will typically be the exemplar but does not have to be).
 
New exemplars are created using the statement <code>def_slotted_exemplar()</code>, for example: