The Dink Network

Reply to Re: 100th callback problem

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
February 21st 2011, 07:36 PM
fairy.gif
Someone
Peasant He/Him Australia
 
Yup. It's not that '100' is special while '101' would theoretically work, it's just that the game runs out of callback slots. This puts a limit on recursion in DinkC. Beuc also noticed this while making his minesweeper clone, which is how I know about it.

There's a limit to everything in DinkC it seems (variables, sprites, scripts, callbacks, etc.). Seth apparently only used fixed size arrays. I don't think it would be that hard to remove the limits but it would be better to just replace DinkC with a better language altogether if someone was interested in that in my opinion.