Yehuda Katz wrote: > > 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). > Why is it that being built into the .EXE versus the library make it valid. There are 100's of functions that can be written at this similar level of convenience. The POSTURTLE above is perfectly clean. Actually a more general function TALKTOTURTLE :turtle :command would be fun to write. By the way your email server is "bouncing" your mail back to me on almost every message for the past few days. -- =============================================================== George Mills email: mills@softronix.com http://www.softronix.com The www page contains some very powerful educational software. Our single most important investment is our kids. --------------------------------------------------------------- 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