Call an object method: Difference between revisions
Content added Content deleted
(→Icon and {{header|Unicon}}: fix lang tag) |
|||
Line 65: | Line 65: | ||
==Icon and {{header|Unicon}}== |
==Icon and {{header|Unicon}}== |
||
In Unicon all procedures and methods are dynamically invoked at run-time. The normal method of invoking a method is with instances of its class. While it is technically possible to call a method without having an instance it requires knowledge of the underlying translation of methods and classes to procedures and is somewhat unusual. |
In Unicon all procedures and methods are dynamically invoked at run-time. The normal method of invoking a method is with instances of its class. While it is technically possible to call a method without having an instance it requires knowledge of the underlying translation of methods and classes to procedures and is somewhat unusual. |
||
<lang |
<lang unicon>procedure main() |
||
foo_m1() # equivalent of class method, not normally used |
foo_m1() # equivalent of class method, not normally used |