Closed notlion closed 10 years ago
In your test case, v
doesn't exist. Use a
instead.
Well I feel like an idiot. You're right. That test case actually works when the proper variable name is used.
I did track down the actual bug, though. I had typed b = i.incr(a)
instead of b = i:incr(a)
. With the dot notation incr()
is actually called, but is passed a reference to a null value.
I'm not sure if you'd consider this a bug or not, but it was confusing. Sorry for the false alarm.
No problem. Things happen.
Userdata is becoming null for some reason when passed to a method of another userdata class. When used by the same class there's no problem. Simple test case: