Wait, what? What is AliasSeq?

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 8 13:50:43 PDT 2015


On Wednesday, 8 July 2015 at 20:14:55 UTC, Tofu Ninja wrote:
> On Wednesday, 8 July 2015 at 18:01:36 UTC, Steven Schveighoffer 
> wrote:
>> In addition, this doesn't work:
>>
>> alias foo = 2;
>
> I think you are right that that should be allowed, but just out 
> of curiosity, if that was allowed, then what would the purpose 
> of enum be?

enum has all kind of bizare rules for arrays for instance. I'm 
not sure how justified it is to begin with, but that it is in and 
everybody uses them enum has its place is there to stay.


More information about the Digitalmars-d mailing list