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*)) ?
On Mar 31, 11:35 am, Spiros Bousbouras <······@gmail.com> wrote:
> 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" ?
Yes, I take it you didn't search this newsgroup
before posting.
> 2) Is (prog2 form1 form*) the same as
> (progn form1 (prog1 form*)) ?
The code generated by the compiler
may not be the same, but the effect
should be.
---
Geoff
Spiros Bousbouras wrote:
> 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" ?
Yes; the Syntax and Arguments and Values sections get it right though.
> 2) Is (prog2 form1 form*) the same as
> (progn form1 (prog1 form*)) ?
Yes.