TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

no recursion checking

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Slither



Joined: 17 May 2014
Posts: 22

PostPosted: Mon May 19, 2014 12:21 pm    Post subject: no recursion checking Reply with quote

Code:
#act {loop} {#showme this is an infinite loop}
#OK. {loop} NOW TRIGGERS {#showme this is an infinite loop} @ {5}.
#showme I hate loops
Illegal instruction


Code:
#function {sum} {#if {%1 == 1} {#var result 1} {#math next {%1 - 1}; #math result {%1 + @sum{$next}}}}

#showme @sum{1}
1
#showme @sum{2}
3
#showme @sum{3}
6
#showme @sum{4}
10
#showme @sum{5}
15
#showme @sum{6}
21
#showme @sum{7}
28
#showme @sum{8}
36
#showme @sum{9}
45
#showme @sum{10}
Illegal instruction


The program's not keeping track of recursion depth. If it reaches a preassigned depth, it should report an error instead of crashing. @sum{10} not working is pathetic.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Mon May 19, 2014 6:47 pm    Post subject: Reply with quote

Odd that it doesn't show the debug stack.

Recursive depth should increase a little once I get around to fully implementing infinite string support.


Not planning to add error checking.
Back to top
View user's profile Send private message Send e-mail
Slither



Joined: 17 May 2014
Posts: 22

PostPosted: Tue May 20, 2014 7:00 am    Post subject: Reply with quote

Scandum wrote:
Not planning to add error checking.


So a poor command or a typo could lead to the client crashing while someone's in the middle of combat on a mud? That sounds like bad program behavior.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Tue May 20, 2014 6:34 pm    Post subject: Reply with quote

tintin is a very naughty client.

Aborting the execution of code can be equally problematic.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group