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

What is letrec* ?
I noticed in the revised progress report on R6RS
(http://schemers.org/Documents/Stand.../2004-10-13.pdf), one of
the extensions under consideration is to "add letrec*, and define
internal =define= in terms of it".

What is letrec* ?  Is it simply a letrec with the init expressions
evaluated in a specific left-to-right order?

In a letrec*, can later variables depend on the values of earlier
values?  For example, with internal =define='s defined with letrec*,
would the following work or not?

(let ()
(define (add-10 x) (+ x 10))
(define ten (add-10 0))
(define twenty (add-10 ten))
(list ten twenty))

Thank you,

Andrew Wilcox
email: scheme[at]andrewwilcox.name

Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Wilcox
12-07-04 09:04 PM


Re: What is letrec* ?
>>>>> "Andrew" == Andrew Wilcox <scheme@andrewwilcox.name> writes:

Andrew> What is letrec* ?  Is it simply a letrec with the init expressions
Andrew> evaluated in a specific left-to-right order?

Yes.

Andrew> In a letrec*, can later variables depend on the values of earlier
Andrew> values?

Yes.

Andrew> For example, with internal =define='s defined with letrec*,
Andrew> would the following work or not?

Andrew>    (let ()
Andrew>      (define (add-10 x) (+ x 10))
Andrew>      (define ten (add-10 0))
Andrew>      (define twenty (add-10 ten))
Andrew>      (list ten twenty))

Yes.

--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla

Report this thread to moderator Post Follow-up to this message
Old Post
Michael Sperber
12-07-04 09:04 PM


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 07:12 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.