[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [r6rs-discuss] [Scheme-reports] Scheme pattern matching: the case for (case)



On Wed, 22 Dec 2010, Peter Kourzanov wrote:

> On Wed, 2010-12-22 at 15:55 -0500, Andre van Tonder wrote:
>
>> R5RS chapter 6 intro:
>>
>> A program may use a top-level definition to bind any variable. It may
>> subsequently alter any such binding by an assignment (see 4.1.6). These
>> operations DO NOT MODIFY the behavior of Scheme's built-in procedures.
>>
>> Andre
>>
>
> But, in R6RS they are in the base library and no longer built-in.

It doesn't matter:

>From R6RS:

(7.1)

   All explicitly exported variables are immutable in both the exporting and
   importing libraries. It is thus a syntax violation if an explicitly exported
   variable appears on the left-hand side of a set! expression, either in the
   exporting or importing libraries.

(8.1)

   A <top-level body> is like a <library body> (see section 7.1), except that
   definitions and expressions may occur in any order.

_______________________________________________
r6rs-discuss mailing list
r6rs-discuss@x
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss