Monday, January 21, 2008

Colon notation

A:Inc(5) is treated like A.Inc(A,5).

where A is an object which has the Inc function and Inc expects two arguments (an object and an integer).

---

function T:F(X) is equivalent to
function T.F(self, X) which is equivalent to
T.F = function (self, X)

No comments: