[plt-scheme] Re: [plt-dev] Errors with SRFI-1 in R6RS mode that are not in #scheme mode in PLT 4.1.4.3-svn13feb2009

From: Grant Rettke (grettke at acm.org)
Date: Sun Mar 1 12:15:32 EST 2009

On Sun, Mar 1, 2009 at 10:53 AM, Eli Barzilay <eli at barzilay.org> wrote:
> On Mar  1, Grant Rettke wrote:
>>
>> This does not:
>>
>> #!r6rs
>>
>> (import (rnrs base)
>>         (only (srfi :1) split-at take drop))
>>
>> (take '(a b c d e)  2) ; => (a b)
>> (drop '(a b c d e)  2) ; => (c d e)
>> (split-at '(a b c d e)  2) ; => expecting
>>                            ;(values (take '(a b c d e)  2) (drop '(a b
>> c d e)  2)
>>
>> >take: index 2 too large for list (not a proper list): {a b c d e}2
>> >drop: index 2 too large for list (not a proper list): {a b c d e}2
>> >take: index 2 too large for list (not a proper list): {a b c d e}2
>>
>> What am I doing wrong?
>
> Mutable lists are not `list?', so you get the same error as if you did
> (take "blah" 2).

So what is happening is that the R6RS is attempting to use the PLT
implementation of SRFI-1?

I need to grab a R6RS SRFI-1 implementation than.

> (BTW, such messages like this are more fitting to the main list.)

Understood. I see that plt-dev is for discussions about development of
the PLT technology itself. I had a another idea about it which was
inaccurate.


Posted on the users mailing list.