Newsgroups: comp.lang.lisp
From: Simon Brooke <si...@jasmine.org.uk>
Date: 2000/06/27
Subject: Re: Newbie asking for help
"Steven M. Haflich" <hafl...@pacbell.net> writes:
> Indeed, the "free" use of a variable is orthogonal to the "undeclared" Indeed, and anyone who has been using Usenet for that length of time > use of a variable, but that does in itself not mean anything. A Usenet > posting may be factually incorrect, and it may be stupid. But it may > be stupid without being incorrect, and it may be incorrect without > being stupid, and it may be both stupid and incorrect. These two > properties are orthogonal. I know this because I have both read and > writen many Usenet postings over the past 17 years. and claims (s)he hasn't made posts of both kinds is a liar. > Similarly, a reference to a variable may be either or both of "undeclared" From the point of view of the argument here, aren't both the print > and "free". Rather than muck around in the meaning of these terms, I'd > ask Erik the following focussed question: > Assume a freshly-booted ANS-compliant CL implementation. What behavior, > (print (progn (setq pie 22/7) pie)) form and the progn forms redundent? Doesn't * (setq pie 22/7) illustrate your point just as well? > I want to know whether this behavior (modulo toplevel interaction, OK, I'll play > prompting, and newlinification) is defined by the ANS. If you claim that > it is, please cite the ANS section references. I claim that the behavior > is either "is an error" or "is undefined". > Do you disagree? <URL:http://www.cs.cmu.edu/Groups/AI/html/hyperspec/HyperSpec/Body/sec_3-1...> If a form is a symbol that is not a symbol macro, then it is the An error of type unbound-variable should be signaled if an unbound SETQ is defined to bind variables to forms. A variable is just any So, in your example, setq binds the name 'pie' in the current dynamic Therefore the behaviour you describe is mandated by the hyperspec. I -- There are no messages. The above is just a random stream of You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||