[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: patch for string library
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 21 May 2004 12:43:59 -0300
> This behavior is not explicitly written in the reference manual
As Rici pointed out, zero-length matches are tricky. Conceptually, there
are infinite empty strings at any point of any string. So, the specific
behavior of a given implementation seems more a device to avoid an
infinite loop than actually a feature (or a bug). As such, programmers
should not count on that behavior.
-- Roberto