Recursion supported in etoys script ?

Kevin Lawrence kevin at diamond-sky.com
Fri Mar 25 18:08:29 UTC 2005


Is it appropriate to post questions about etoys to this list ?

[I'll risk it this time - let me know if there is somewhere else I 
should be asking, thanks.]


I tried making a simple etoys script with recursion and it hangs as soon 
as I click the run icon.

the script was essentially (excuse my Java-ish pseudocode) ...


spawn script
  test self.sees blue

  yes

  no
   self.newCopy = self.copy
   self.newCopy.forwardBy self.length
   self.newCopy.spawn


Assuming I haven't made a really silly *mistake, should this work ?

Is recursion supported ?

(I searched the bug database but couldn't find anything)


Thanks !

Kevin

* Please tell me if there is a silly mistake !



More information about the Squeak-dev mailing list