enum
Steven Schveighoffer
schveiguy at yahoo.com
Tue Apr 8 13:48:35 PDT 2014
On Tue, 08 Apr 2014 15:57:31 -0400, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:
> On 4/8/14, 12:56 PM, Andrei Alexandrescu wrote:
>> On 4/8/14, 12:54 PM, Steven Schveighoffer wrote:
>>> On Tue, 08 Apr 2014 15:51:31 -0400, Andrei Alexandrescu
>>> <SeeWebsiteForEmail at erdani.org> wrote:
>>>
>>>> On 4/8/14, 12:23 PM, Steven Schveighoffer wrote:
>>>>> What about allowing enum methods?
>>>>
>>>> No because CTFE. -- Andrei
>>>
>>> What about what I said is prevented by or prevents CTFE (not sure what
>>> your objection is)?
>>
>> CTFE renders enum methods unnecessary. -- Andrei
>
> Wrong term - UFCS. -- Andrei
>
OK, that makes more sense :)
So the idea was to eliminate enum operations, except for what was defined
in the enum itself. A kind of way to dictate via code the operations that
make sense for that enum set.
So this goes with a way to disable all operations that normally are
accepted (except equality).
-Steve
More information about the Digitalmars-d
mailing list