Forum: Wiki
04/14/14, 12:16 PM
|
Replies: 22
Views: 57,080
That's what I've written exactly...
That's what I've written exactly before:
function obj.myfunc(param1, param2)
return obj.myfunc2(param3, param1, param2)
end
Including the fact that it doesn't matter how param3 makes it way into...
|
Forum: Wiki
04/13/14, 08:34 AM
|
Replies: 22
Views: 57,080
Right.
Exactly what I said:
string.len(s)
not...
Right.
Exactly what I said:
string.len(s)
not string.len()
They gave the shorthand example if you have an instance of string named s, too.
s:len() (they didn't write string.len() for a reason..)
|
Forum: Wiki
04/13/14, 06:15 AM
|
Replies: 22
Views: 57,080
myfunc(object, param1, param2)
That's the...
myfunc(object, param1, param2)
That's the signature.
That LUA allows myfunc to be called in three ways, as:
obj.myfunc(otherobj, param1, param2)
obj.myfunc(obj, param1, param2)
obj:myfunc(param1,...
|
Forum: Wiki
04/13/14, 04:23 AM
|
Replies: 22
Views: 57,080
I guess there was no logic to quote.
Already...
I guess there was no logic to quote.
Already "it's a return from the event handler" does not make sense.
LUA functions can only return a value and a function as value has no signature.
That's why...
|
Forum: Wiki
04/12/14, 05:15 PM
|
Replies: 22
Views: 57,080
I don't think you understood the example.
So...
I don't think you understood the example.
So it's not logic that determines what is right and what is wrong, but "how other people do it". Oookay. Then tell me, why does everyone fail to make it...
|
Forum: Wiki
04/12/14, 06:49 AM
|
Replies: 22
Views: 57,080
I disagree with the conclusion.
function...
I disagree with the conclusion.
function obj.myfunc(param1, param2)
return obj.myfunc2(param3, param1, param2)
end
The signature for obj.myfunc2() is
obj.myfunc2(param3, param1, param2)
|
Forum: Wiki
04/11/14, 12:54 PM
|
Replies: 22
Views: 57,080
|