One of my D books says: "an enum declared without any braces is called a manifest constant." The example shows,

enum string author = "Mike Parker";

Is this equivalent to
const string author = "Mike Parker";
or
immutable string author = "Mike Parker";

I guess what I'm asking is does enum give you some advantages over say non-enum constants?

Thanks.

Reply via email to