Yehuda Katz wrote: > > George Mills wrote: > > > > > George, > > > > > > 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. That's part of the reason why Logo has so many of it's functions come in pairs, so you can expand the "Library" your liking. That's why Brian invested so much time in the Library, BURY command and MACROs. Part of "expanding" the library could be part of the learning process. Think like a carpenter. If a carpenter needed a Bench and Bosch didn't make one, would he work on the floor? Would the bench he built be any less a bench because he built it. However, he would have to work on the floor to build his bench :-) -- =============================================================== 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