Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Possible errata in R5RS?
I couldn't find a reference to this particular example as an error, so
either no one noticed it, no one cares, or I'm wrong.

=)

If the latter, could someone please tell me why?

Section 4.2.6 on quasiquotation states (page 13 of the PDF, bottom of
the left column):

"Quasiquote forms may be nested. Substitutions are made
only for unquoted components appearing at the same nesting
level as the outermost backquote. The nesting level increases
by one inside each successive quasiquotation, and
decreases by one inside each unquotation."

Then the example is given (top right column of page 13):

`(a `(b ,(+ 1 2) ,(foo ,(+ 1 3) d) e) f)
=> (a `(b ,(+ 1 2) ,(foo 4 d) e) f)

I think this is wrong.  Why is ,(+ 1 3) evaluated?  It's clearly at the
`(b ...) level of quasiquotation.  I think the example should read:

`(a `(b ,(+ 1 2) ,(foo ,(+ 1 3) d) e) f)
=> (a `(b ,(+ 1 2) ,(foo ,(+ 1 3) d) e) f)

because there are no (unquote ...) or (unquote-splicing ...) constructs
at the `(a ...) level of quasiquotation.

Anyone?

Thanks...


Report this thread to moderator Post Follow-up to this message
Old Post
ckimyt@gmail.com
02-12-05 08:57 AM


Re: Possible errata in R5RS?
Yeah, OK, I re-read it again and thought about it and I was wrong.

Sorry to waste bandwidth.


Report this thread to moderator Post Follow-up to this message
Old Post
Mike
02-12-05 08:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Scheme archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:56 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.