Manifest constants (was const again)

Janice Caron caron800 at googlemail.com
Sat Dec 8 02:46:12 PST 2007


On 12/8/07, Walter Bright <newshound1 at digitalmars.com> wrote:
> but that's about it before getting past
> it and it becoming just more D jargon like static, class, and real.

Actually, I'm not too happy with "ireal" or "creal" either. I'd prefer
"imaginary" and "complex".

...but back on topic...

anyone coming from a C/C++ background (or, for that matter, PHP), will
expect the word "define" to do this job.

C/C++
    #define x 3

PHP
    define("x",3);

D?
    define x = 3;



More information about the Digitalmars-d mailing list