enum

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Apr 9 14:15:53 PDT 2014


On 4/9/14, 11:54 AM, Andrej Mitrovic wrote:
> On 4/9/14, Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
>> E succ(E value);
>> E succ(E value, E overflow) nothrow;
>> E pred(E value);
>> E pred(E value, E overflow) nothrow;
>
> Not to nitpick, but next/prev for the names is easier to understand.
> "succ" is rare, and "pred" reminds me of "predicate".
>

Good point. I was going with Pascal, perhaps not a model to follow. -- 
Andrei


More information about the Digitalmars-d mailing list