Showing results 1 to 7 of 7
Search took 0.00 seconds.
Search: Posts Made By: Iyanga
Forum: Wiki 04/14/14, 12:16 PM
Replies: 22
Views: 56,595
Posted By Iyanga
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: 56,595
Posted By Iyanga
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: 56,595
Posted By Iyanga
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: 56,595
Posted By Iyanga
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: 56,595
Posted By Iyanga
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: 56,595
Posted By Iyanga
Thumbs up 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: 56,595
Posted By Iyanga
One thing about events is that the WIKI does not...

One thing about events is that the WIKI does not show that events get as first parameter the eventCode, this should be included in the event descriptions, it only leads to the same 'why doesn't this...
Showing results 1 to 7 of 7