PhobosWatch: manifest => enum

guslay guslay at gmail.com
Fri Dec 28 11:09:49 PST 2007


Bill Baxter Wrote:

> Timestamp:
>      12/27/07 20:47:21 (5 hours ago)
> Author:
>      walter
> Message:
> 
>      manifest => enum
> http://www.dsource.org/projects/phobos/changeset/536
> 
> --bb

My only concern with enum is, will people use it?

In C++, using enum to define integral constants is actually the closest match to a #DEFINE. However most people use "const int", I guess either because the syntax is more convenient, it's easier to remember or because they don't know any better.





More information about the Digitalmars-d mailing list