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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Sat Jan 31, 2009 3:44 am   

Print...Lua vs Zscript
 
Why is the Lua print function mapped to the zscript #say or #echo and not to #print? It would be a lot easier the other way around so I don't have to use zs.print("blah blah") and could just do print("blah blah"). I don't want print to fire triggers. I just want to use print() to print messages to the screen. If I wanted to test triggers, I would use zs.show(). So basically I have to use zs.print() so it bypasses checking all the triggers.
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Sat Jan 31, 2009 1:20 pm   
 
Because #print didn't exist when print() was created. And I'm sure there're also people who want print() to be able to fire triggers - if you want that behaviour, it's not that much hassle to type three extra characters. It's not like it's broken.
_________________
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 General Discussion 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