About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Mar 22, 2008 11:08 am   

[2.20] Reparse trigger type and #STATE causes loop
 
This seems to be an infinite loop and is a rather bad thing. The idea I was having in trying this is to make a trigger such that one reparse state will stop further testing of the trigger. Most likely not the best way to go about it, but an infinite loop should still not be caused by this.

Procedure
1. Launch CMud
2. Close Sessions window (ESC)
3. Enter at the command line
Code:
#TRIG {ab} {};#COND {a} {#STATE ab 0} {reparse};#COND {b} {} {reparse}

4. Enter at the command line
Code:
#SHOW ab
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Sat Mar 22, 2008 11:21 am   
 
I dunno what it is that makes your usage different from mine, but mine is working fine. Entering

Code:
#TRIG {ab} {};#COND {a} {#STATE ab 0} {reparse};#COND {b} {} {reparse};#say ab


on the command line caused CMUD to freeze.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


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

PostPosted: Sat Mar 22, 2008 4:36 pm   
 
Seems like something reasonable that should work, so I've added it to the 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