Duncan Harvey <usenet-2006-04@abbrvtd.org.uk> wrote:
+---------------
| Bill Atkins <NOatkinwSPAM@rpi.edu> wrote:
| > Christophe Rhodes <csr21@cam.ac.uk> writes:
| > > Peter Seibel <peter@gigamonkeys.com> writes:
| > >> I can't think, offhand, of any areas where implementations
| > >> intentionally deviate from the spec with no intention of
| > >> fixing it when they get around to it.
| > >
| > > PROG2.
| >
| > What does this mean?
|
| PROG2 is specified as being equivalent to PROG1. See the Description at
| <http://www.lispworks.com/documentation/HyperSpec/Body/m_prog1c.htm>:
|
| | prog2 evaluates first-form, then second-form, and then forms,
| | yielding as its only value the primary value yielded by first-form.
|
| This is usually regarded as an accident and an error. Consequently
| implementations write it as people expect rather than as specified.
| (But not all of them document their wilfully deviant behaviour...)
+---------------
But the "Syntax:" & "Arguments and Values:" sections *above* the part
you quoted strongly supports the interpretation that the "Description:"
text is the typo "accident", since the former two say this:
prog2 first-form second-form form* => result-2
...
result-2---the primary value resulting from the evaluation of second-form
So returning the second-form *IS* "as specified", if you take the
specification in the syntax/args section as being definitive rather
than the conflicting description text.
Unfortunately, neither "1.4.4 Interpreting Dictionary Entries"
nor "1.4.3 Sections Not Formally Part Of This Standard" deals
with the proper interpretation between conflicting texts which
*are* all formally part of the standard.[1] So we have these
silly arguments, even when it's *obvious* which is correct... ;-}
-Rob
[1] Well, "1.5.1.4.1 Resolution of Apparent Conflicts in Exceptional
Situations" covers one case, but that's not germane here.
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607