lua-users home
lua-l archive

Re: patch for string library

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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

AltStyle によって変換されたページ (->オリジナル) /