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
Fang Xianfu
GURU


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

PostPosted: Thu Nov 09, 2006 11:25 pm   

[1.13] User-defined functions eat following spaces.
 
Define a function as follows:

#function testfunc($param) {$param}

Doesn't matter what the function contains, I've tried it with %1, %-1, even completely empty. Now type on the command line:

#echo @testfunc(hello) test test test

Instead of expected output "hello test test test" you instead get "hellotesttesttest". This only happens after the function. If you were to input this:

#echo test test test @testfunc(hello) test test test

you would receive "test test test hellotesttesttest". It also only applies to the current line.

This bug is most annoying because it even eats spaces in commands. If I were to try to define a variable like this for example:

#var @testfunc(testvar) testvalue

I would get the error "Variable testfunctestvalue not defined".
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Nov 10, 2006 2:21 am   
 
Added to bug list.
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