Article View: comp.lang.logo
Article #5too many levels recursion- MSWlogo.2.1
From: Bob Stocks
Date: Sat, 31 Oct 1992 22:48
Date: Sat, 31 Oct 1992 22:48
18 lines
1192 bytes
1192 bytes
I'm kind of confused about something. I've just written a small spiral procedure to teach my 6th grade students about loops and it works fine on the apple IIc at school using appleLogo but when I run it on MSW Logo I get a message saying "too many levels of recursion."Here's the procedure: . to spiral :firstlength :angle cs while[:firstlength<175][fd :firstlength; rt :angle; make "firstlength [] :firstlength+2 ] end . Now, there are brackets in the correct places here, but for some reason my rn system won't let me print them.(?) What happens is that the procedure will run for the first 50 or so times through the loop and then I get the error message. Can anyone help? thanks. Bob Stocks
Technical Details
Message-ID:
<19921031144805IZZYOB9@MVS.OAC.UCLA.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!uwm.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ucla-cs!ucla-mic!MVS.OAC.UCLA.EDU!IZZYOB9Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.logo Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!uwm.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ucla-cs!ucla-mic!MVS.OAC.UCLA.EDU!IZZYOB9 From: IZZYOB9@MVS.OAC.UCLA.EDU (Bob Stocks) Subject: too many levels recursion- MSWlogo.2.1 Message-ID: <19921031144805IZZYOB9@MVS.OAC.UCLA.EDU> Sender: MVS NNTP News Reader <NNMVS@MVS.OAC.UCLA.EDU> Nntp-Posting-Host: mvs.oac.ucla.edu Date: 31 Oct 92 14:48:18 PST Lines: 18