[pcre-dev] [Bug 1447] Support for Enumerations

Startseite
Nachricht löschen
Autor: 1447
Datum:  
To: pcre-dev
Betreff: [pcre-dev] [Bug 1447] Support for Enumerations
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1447




--- Comment #6 from quetantofaz@??? 2014-02-25 17:48:21 ---
(In reply to comment #5)
> Why don't you use MARK or callouts? Mark is cheap.
>


I never knew them, thank you.

On first sight Callouts look like an internal API, and otherwise, like they
mean bad language integration.

Anyway, when speaking of features, it is distinct. I believe enumerations
attend a common case, that's why I posted the request. I can see it breaks the
"always returns a list of strings" contract of the output. Breaking that
contract will probably mean it'll never get implemented. But maybe I'm wrong.

The result of an enumeration could of course be returned as the length field of
a string, so at least things won't break for anyone upgrading to the latest
version, ignorant of this feature. Anybody else could use the upgraded API.

We could argue about the content of this backwards compatible string. It might
signal that this is not an ordinary string, so zeroes and BACKSPACE come to
mind. But maybe just leave it as a string of '#'.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email