[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LOGO-L> Re: what is logo useful for anyways?




Wen wrote:-
>Just a question about the uses of " and : before a Logo variable.
>In LISP, we use quote or not quote to decide whether we just use
>a symbol literally or to evaluate it. How come in Logo, we use
>two special characters, double quote  and colon, to distinguish
>these two?  We only have a comparatively small benefit of that,
>for example, we can use FD, as a variable name.

: is an abbreviation for thing "variableName

Example:

make "age 10
show thing "age
10
show :age
10


-- Bill Kerr
---------------------------------------------------------------
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