Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
rck
Novice


Joined: 26 Oct 2005
Posts: 32
Location: California

PostPosted: Thu Dec 20, 2007 1:32 am   

[2.18] Lua bug: Conversion of some zmud values to string results in exception
 
Execute this on lua command-line:
Code:
print(tostring(zs.func));
Raises an exception. It probably shouldn't.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Dec 20, 2007 9:27 pm   
 
Definitely not, this should probably be a userdata response.

The trouble is that the zs object is the userdata, and func is a virtual table inside that userdata. So func isn't actually anything, which may be what's causing the problem. I'm not sure what the standard lua behaviour is in this situation.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net