Two questions about prog2



1) The HS page on prog2 says:

prog2 evaluates first-form, then
second-form, and then forms,
yielding as its only value the primary
value yielded by first-form.

Is the last word meant to be "second-form"
instead of "first-form" ?

2) Is (prog2 form1 form*) the same as
(progn form1 (prog1 form*)) ?
.



Relevant Pages

  • Re: How Common Lisp sucks
    ... intentionally deviate from the spec with no intention of fixing it when ... PROG2 is specified as being equivalent to PROG1. ... | yielding as its only value the primary value yielded by first-form. ...
    (comp.lang.lisp)
  • Re: DEFSTRUCT and lexical environment
    ... "prog2 evaluates first-form, then second-form, and then forms, yielding ...
    (comp.lang.lisp)
  • Re: Two questions about prog2
    ... prog2 evaluates first-form, then ... yielding as its only value the primary ... value yielded by first-form. ... Is the last word meant to be "second-form" ...
    (comp.lang.lisp)
  • Re: Two questions about prog2
    ...     prog2 evaluates first-form, ...     yielding as its only value the primary ...     value yielded by first-form. ... Is the last word meant to be "second-form" ...
    (comp.lang.lisp)
  • Re: CLHS bug? (PROG2)
    ... "prog2 evaluates first-form, then second-form, and then forms, yielding ... (Emphasis mine) ... Shouldn't PROG2 be returning the primary value returned by second-form? ...
    (comp.lang.lisp)