Kevin Ryde writes:

Another option would be to handle empty REs in string-match.

I think it could follow the libc, as long as it doesn't crash.

Yes. In practice empty regular expression aren't common anyway.

Henry Spencer's regcomp doesn't crash if the regular expression is empty. Instead the error code REG_EMPTY is returned. POSIX doesn't define REG_EMPTY but the RE grammar presented in the POSIX specification doesn't seem to allow empty REs either. See http://www.opengroup.org/onlinepubs/009695399/basedefs/ xbd_chap09.html#tag_09_05



_______________________________________________
Bug-guile mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-guile

Reply via email to