[racket-dev] regexp-split produces immutable cons when rnrs/base-6 is required

From: Marijn (hkBst at gentoo.org)
Date: Fri Nov 25 08:15:13 EST 2011

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

regexp-split produces an immutable cons when rnrs/base-6 is required:

$ 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

$ echo "m" | racket -e '(require rnrs/base-6) (car (list (read-line
(current-input-port))))'
"m"

so apparently regexp-split is the culprit,

Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7PlOEACgkQp/VmCx0OL2wlTwCgwTewaztqNFFkqtQxj9Yh2ELB
/FkAnjA9OksH4ziOdIP33C5SdveRx960
=Mw9C
-----END PGP SIGNATURE-----


Posted on the dev mailing list.