From: Chaitanya Gupta
Subject: CLHS bug? (PROG2)
Date: 
Message-ID: <fm2226$grp$1@registered.motzarella.org>
The definition for PROG2(1) says -

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

(Emphasis mine)

Shouldn't PROG2 be returning the primary value returned by second-form?

Thanks,

Chaitanya

Notes
-----
1. http://www.lispworks.com/documentation/HyperSpec/Body/m_prog1c.htm

From: Daniel Weinreb
Subject: Re: CLHS bug? (PROG2)
Date: 
Message-ID: <Qu1hj.8169$%A6.1460@trndny08>
Chaitanya Gupta wrote:
> The definition for PROG2(1) says -
> 
> "prog2 evaluates first-form, then second-form, and then forms, yielding
> as its only value the primary value yielded by /first-form/."
> 
> (Emphasis mine)
> 
> Shouldn't PROG2 be returning the primary value returned by second-form?

Yes.  There appears to be a small typo here.

> 
> Thanks,
> 
> Chaitanya
> 
> Notes
> -----
> 1. http://www.lispworks.com/documentation/HyperSpec/Body/m_prog1c.htm
From: Barry Margolin
Subject: Re: CLHS bug? (PROG2)
Date: 
Message-ID: <barmar-563D1F.05583709012008@comcast.dca.giganews.com>
In article <···················@trndny08>,
 Daniel Weinreb <···@alum.mit.edu> wrote:

> Chaitanya Gupta wrote:
> > The definition for PROG2(1) says -
> > 
> > "prog2 evaluates first-form, then second-form, and then forms, yielding
> > as its only value the primary value yielded by /first-form/."
> > 
> > (Emphasis mine)
> > 
> > Shouldn't PROG2 be returning the primary value returned by second-form?
> 
> Yes.  There appears to be a small typo here.

Who among us hasn't had fencepost errors and off-by-one bugs?

-- 
Barry Margolin, ······@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
From: Rainer Joswig
Subject: Re: CLHS bug? (PROG2)
Date: 
Message-ID: <joswig-CD6DE9.11250709012008@news-europe.giganews.com>
In article <············@registered.motzarella.org>,
 Chaitanya Gupta <····@chaitanyagupta.com> wrote:

> The definition for PROG2(1) says -
> 
> "prog2 evaluates first-form, then second-form, and then forms, yielding
> as its only value the primary value yielded by /first-form/."
> 
> (Emphasis mine)
> 
> Shouldn't PROG2 be returning the primary value returned by second-form?
> 
> Thanks,
> 
> Chaitanya
> 
> Notes
> -----
> 1. http://www.lispworks.com/documentation/HyperSpec/Body/m_prog1c.htm

See here:

  http://www.cliki.net/Proposed%20ANSI%20Revisions%20and%20Clarifications
From: Chaitanya Gupta
Subject: Re: CLHS bug? (PROG2)
Date: 
Message-ID: <fm2e0a$os$1@registered.motzarella.org>
Rainer Joswig wrote:
> See here:
> 
>   http://www.cliki.net/Proposed%20ANSI%20Revisions%20and%20Clarifications

Thanks! I was worried I had grossly misunderstood the description somehow.