Manifest constants (was const again)

Janice Caron caron800 at googlemail.com
Sat Dec 8 11:44:50 PST 2007


On 12/8/07, Walter Bright <newshound1 at digitalmars.com> wrote:
> No, that would be:
>
>      enum defname = "upload.log";
>      enum float fudge = 61.74;
>      enum char starter = 'r';
>      enum qwerty = 0xF4;
>      enum foobar = SomeFunc("foobar");

The first one is interesting. Can I do

    enum s = "hello";
    auto p = s.ptr;

?



More information about the Digitalmars-d mailing list