文档上的说面:
The colon syntax is used for defining methods, that is, functions that have an implicit extra parameter self.
因此,下面2种形式等价:
print( myObject:memberMethod() );
print( myObject.memberMethod(myObject));
文档上的说面:
The colon syntax is used for defining methods, that is, functions that have an implicit extra parameter self.
因此,下面2种形式等价:
print( myObject:memberMethod() );
print( myObject.memberMethod(myObject));