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
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
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 ***
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
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.