On Fri, Nov 25, 2011 at 8:15 AM, Marijn <[email protected]> wrote:
>
> regexp-split produces an immutable cons when rnrs/base-6 is required:
`regexp-split' is still being obtained from `racket/base' in this example:
> $ echo "m" | racket -e '(require rnrs/base-6) (car (regexp-split " +"
> (read-line (current-input-port))))
> 'mcar: expects argument of type <mutable-pair>; given '("m")
>
> but
but all of these bindings are shadowed by `rnrs/base-6', and so
manipulate mutable pairs.
> $ echo "m" | racket -e '(require rnrs/base-6) (car (list (read-line
> (current-input-port))))'
> "m"
>
> so apparently regexp-split is the culprit,
R6RS doesn't specify regular expressions, so there isn't a custom
version of the regular expression functionality that works with R6RS
(ie, mutable) lists.
--
sam th
[email protected]
_________________________________________________
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/dev