Circular Import Error

Basically, an error that pops up when one of the following blocks is called:


I think this would help in preventing people from trying to crash Snap! and others' browsers (even if you can close the tab, some young children might fry their computer's components running a Snap! crashing project (exaggeration)). It also helps in development. For example, sometimes I accidently do something like the image above and it takes a minute or two (on my ancient Windows 7, AMD Vision Premium) to stop the script. It's quite frustrating... Thank you devs!

We could check for that specific case (A calls B, B calls A), but it's the tip of the iceberg, and I'm not convinced that that particular check is worth the (huge) time it would take to run.

It is provably impossible to catch infinite loops in general.

Ah. Ok, thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.