Actually either will work fine here. But LIST is more appropriate. What if SOUND's second argument was a list and therefore :notetime had to be a list. to AList :notetime show (list 415 :notetime) end to ASe :notetime show (se 415 :notetime) end AList [1 2 3] [415 [1 2 3]] ASe [1 2 3] [415 1 2 3] SENTENCE takes each element of each argument (which may be a list) and places those elements in the output list. LIST just puts in what ever you give it. And in this case I know :notetime will never be a list so the "extra" functionality SENTENCE provides is not needed. Sometimes you want one behavior and sometimes the other but more often than not I want the behavior of LIST and always use it by default. It's also less work for LOGO since it does not have to check if each argument is a list or not, it just takes what ever you give it and puts it in the list as is. SENTENCE is useful when you have groups of things you need to pull together to make a signal group of those things. Like 2 groups of words to form a sentence :-) Paul C Dench wrote: > > At 06:36 PM 6/28/98 -0400, you wrote: > >Your misusing [ ], [ ]'s are for a literal list of items. > >You want to build a list and put what you need into it. > > > >Try this: > > > >make "notetime 100 > >show [415 :notetime] > >show (list 415 :notetime) > > > >So this is your fix. > > > >to Ab :notetime > >sound (list 415 :notetime) > >end > > > >It's a common misunderstanding in Logo. > > I'm intrigued as to why, if any reason, you prefer to use 'list' here > rather than 'sentence'. > > I've always written this > > sound se 415 :notetime ;excluding the () for only the two inputs > > Paul Dench -- =============================================================== 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