Jump to content

Call an object method: Difference between revisions

(→‎Anonymous methods: It has a name so it's not anonymous.)
Line 230:
 
In E, there are no distinguished "static methods". Instead, it is idiomatic to place methods on the maker of the object. This is very similar to methods on constructors in JavaScript, or class methods in Objective-C.
=={{header|Elena}}==
Generic message call:
<lang elena>
instance message:param1:param2.
</lang>
Message with signature:
<lang elena>
instance message &subj1:param1 &subj2:param2.
</lang>
 
=={{header|Forth}}==
{{works with|4tH|3.62.0}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.