ChipWits: Robot-Programming Fun - Bring Your Brain!

ChipWits Game Community
Endless loop if more than 100 nested subpanel chips execute

 
Post new topic   Reply to topic    ChipWits: Robot-Programming Fun - Bring Your Brain! Forum Index -> Bug Hunting
View previous topic :: View next topic  
Author Message
Bytecodes
IBOLHead


Joined: 06 Dec 2007
Posts: 79

PostPosted: Sat Dec 22, 2007 9:41 am    Post subject: Endless loop if more than 100 nested subpanel chips execute Reply with quote

Build .986
Mac OS X 10.5.1 (Leopard)

If subpanel chip calls are nested more than 100 deep then the IBOL program endlessly loops at the next subpanel chip socket.

When the limit is hit it should cause an IBOL error diagnostic that tells the user they have an infinite subpanel loop programming error. Besides doing this, the IBOL interpreter should support a much larger nesting depth, such as 500, which would permit the user to treat SUBPANEL as a GOTOPANEL. Complicated IBOL programs often need to split code across panels when squeezed for space and they have to use the SUBPANEL chip to get there since there isn't a GOTOPANEL chip type. I would not advise supporting such a new type chip, but if you enlarge the nesting depth as suggested it would permit complicated IBOL programs to use SUBPANEL as a GOTO.
Back to top
View user's profile Send private message
dougsharp
Site Admin


Joined: 16 Feb 2007
Posts: 193

PostPosted: Sun Jan 27, 2008 12:22 am    Post subject: Reply with quote

Thanks. Good points. I will up the recursion limit and give an error message.
Back to top
View user's profile Send private message
dougsharp
Site Admin


Joined: 16 Feb 2007
Posts: 193

PostPosted: Thu Apr 17, 2008 2:30 am    Post subject: Reply with quote

Upped the limit to 500 and added an error dialog when that max is hit.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ChipWits: Robot-Programming Fun - Bring Your Brain! Forum Index -> Bug Hunting 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


© 2007-2008 Informe.com. Get Free Forum Hosting
Powered by phpBB © 2001, 2005 phpBB Group
 :: 

RedSilver 1.01 Theme was programmed by DEVPPL HTML Forum
Images were made by DEVPPL Photoshop Forum