-----Original Message----- From: Michael Blum <MBLUM@westerngas.com> To: mills@softronix.com <mills@softronix.com> Date: Tuesday, July 21, 1998 4:03 PM Subject: bug in msw Logo 6.2h 32bit version? >** Proprietary ** > >Dear Mr. Mills - >First off, thank you, thank you, thank you for the wonderful MSW Logo >package! It's been a long time since I've had this much fun programming - >and I've been programming for a long time. I'm working on getting my 10 >year old daughter turned on to it too, and was wondering if you know of >any books that use Logo as a teaching vehicle for beginning algebra and >geometry? It seems to me that it would be a natural fit for these subjects. > Almost all Logo books cover some algebra and geometry (more so on the later). See the links on MSWLogo's web page for books and other resources. Also note version 6.3 is now available. > >Now, about that possible bug: I was trying something simple with default >parameter expressions and I ran into the following: > >po "tdef >to tdef :a [:b "x] >pr :a >pr :b >end > >tdef 1 >1 >x > >tdef 1 2 >1 >x >You don't say what to do with 2 A function has 1 default form, as you have specified your function that one default form takes 1 parameter. By calling a function without explicit ()'s your calling it in it's default form. ()'s allow you to invoke the alternative forms (like the form that will take 2 inputs). (tdef 1 2) 1 2 See Online help of the TO function which I suspect you already did since you probably would not even know this feature exists if you didn't. Default parameters and variable number of arguments is very powerful. Thank Brian Harvey for it not me. > >Which doesn't make sense to me. If this is in fact due to my own stupidity >or ignorance of Logo my sincere apologies! > >Thanks again for a great product, >Michael Blum > --------------------------------------------------------------- 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