How about "inline" for manifest constants?
Robert Fraser
fraserofthenight at gmail.com
Mon Dec 10 12:57:09 PST 2007
Janice Caron wrote:
> On Dec 10, 2007 7:18 AM, Robert Fraser <fraserofthenight at gmail.com> wrote:
>> Anyways, it's a good idea.
>
> Isn't this exactly the same idea as
>
> enum int x = 3;
>
> but with "inline" instead of "enum"? Aren't we done arguing over what
> the word should be?
No it's not. With inline or wildbeast, you can create blocks:
wildbeast
{
int mufasa = 99999999999999L;
string aslan = "i can has cheezburger?";
}
This can't be done with enum. SOme other word besides enum, final or
alias needs to be found, IMO, since enum can't create blocks, and final
used on blocks would have different meanings for vars and member functions.
More information about the Digitalmars-d
mailing list