From: Spiros Bousbouras
Subject: Two questions about prog2
Date: 
Message-ID: <ab72d2ce-ac63-4b48-99ba-1aa60b0fd2a8@c19g2000prf.googlegroups.com>
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*)) ?

From: Geoffrey Summerhayes
Subject: Re: Two questions about prog2
Date: 
Message-ID: <8b9848bc-da40-4566-8cd4-346db9393952@d21g2000prf.googlegroups.com>
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
From: Brian
Subject: Re: Two questions about prog2
Date: 
Message-ID: <6821992d-70dd-4c78-a778-6790d5738ff0@s50g2000hsb.googlegroups.com>
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.