Magik (programming language): Difference between revisions

Content deleted Content added
Rescuing 1 sources and tagging 0 as dead. #IABot (v1.6.1)
Krein-H (talk | contribs)
m Comparison: better clarity of example of '=' and '_is' operator
Line 82:
 
a << "hello"
b << a
a = b # returns True (_true) because the values of a and b are equal
a _is b # returns True (_true) because b was assigned the specific instance of the same object as a, rather than the value of a.
</pre>
 
===Methods===
Methods are defined on exemplars using the statements <code>_method</code> and <code>_endmethod</code>: