[plt-scheme] Possible bug in pregexp-split in 370.
Hi All,
According to the pregxp documentation:
(pregexp-split "" "smithereens")
=> ("s" "m" "i" "t" "h" "e" "r" "e" "e" "n" "s")
According to mzscheme 370:
$ /usr/local/plt/bin/mzscheme
Welcome to MzScheme v370 [3m], Copyright (c) 2004-2007 PLT Scheme Inc.
> (require (lib "pregexp.ss"))
> (pregexp-split "" "smithereens")
regexp-split: pattern matched a zero-length substring
... and mzscheme 352 (from ubuntu):
Welcome to MzScheme version 352, Copyright (c) 2004-2006 PLT Scheme Inc.
> (require (lib "pregexp.ss"))
> (pregexp-split "" "smithereens")
("s" "m" "i" "t" "h" "e" "r" "e" "e" "n" "s")
Did the behaviour of the function change and documentation didn't? or
is this actually a bug?
Thanks,
Jon.