Pardon me for jumping in...Am I missing something here? One of the delights of Logo has always been the ability to create new primitives to suit personal needs. Even LadyBug Logo let you create your own commands and load them with the Preface procedure. > > If I recall well, that was the situation in LogoWriter. I don't know how > > is it in PC Logo or MicroWorlds. Deserves a check. Are you talking about TELL and/or ASK? Regards...Jim Message-ID: <342BF0A3.5D65@beitberl.ac.il> Date: Fri, 26 Sep 1997 19:28:03 +0200 From: Yehuda Katz <yehuka@beitberl.ac.il> To: mills@ultranet.com CC: Logo-L <Logo-L@gsn.org> Subject: LOGO-L> Re: Multiple Turtles Sender: owner-logo-l@gsn.org Reply-To: Yehuda Katz <yehuka@beitberl.ac.il> George Mills wrote: > > Yehuda Katz wrote: > > > > I made a figure with several turtles. My current turtle in No. 1. I want > > > > to connect it with, for instance, turtle 2. Can this be accomplished > > > > from my position? (I mean, WITHOUT asking explicitly any of the turtles > > > > about its POS and AFTER it connecting the two points.) > > > > > > > > In other words: What FUNCTION gives me the POS, or HEADING of a turtle, > > > > while I'm activating another turtle? > > > > > Think like a carpenter. If the tool does not exist to > > > do the job, then build a tool (a jig) to make it so. > > > > > > to posturtle :t > > > localmake "st turtle > > > setturtle :t > > > localmake "tp pos > > > setturtle :st > > > op :tp > > > end > > > > > > You can do distturtle, headingturtle, orientationturtle, towardsturtle > > > setposturtle, in the same fashion. I could spend a life time expanding > > > the library. > > > > George, > > > > This must be in Logo proper, not in the library, in light of the > > importance of functional programming. > > > > I'm expecting a *primitive* function (instead of the 5 suggested library > > functions), named maybe TURTLE, that will enable commands like: > > > > SETXY TURTLE 5, SETH TOWARDS TURTLE 4, etc. > > > > If I recall well, that was the situation in LogoWriter. I don't know how > > is it in PC Logo or MicroWorlds. Deserves a check. > > > > Thank You, > > > > [[Yehuda]] > > This attitude that everything must be a primitive to make it "ok" > is nonsense. George, I didn't say that "everything must be a primitive". All I said was that the above TURTLE (or whatever you might call it) must be a *primitive* and not library procedure(s). Regards... [[Yehuda]] --------------------------------------------------------------- Please post messages to the Logo forum to logo-l@gsn.org. Mail questions about the list administration to logofdn@gsn.org. To unsubscribe send unsubscribe logo-l to majordomo@gsn.org. --------------------------------------------------------------- Please post messages to the Logo forum to logo-l@gsn.org. Mail questions about the list administration to logofdn@gsn.org. To unsubscribe send unsubscribe logo-l to majordomo@gsn.org.
Global SchoolNet Foundation -
Linking Kids Around the World!
Copyright GSN - All Rights Reserved
- Comments
& Questions
Visit GSN's
Global
Schoolhouse for more exciting learning resources!
Search our Site
-
Home