PhobosWatch: manifest => enum
Janice Caron
caron800 at googlemail.com
Fri Dec 28 13:36:02 PST 2007
On 12/28/07, "Jérôme M. Berger" <jeberger at free.fr> wrote:
> > I understand your point, but also consider that adding yet a fourth way
> > to declare constants
Actually, I think that's a fifth way. You may have forgotten about
real pi() { return 3.14159265359; }
Since we would hope that
real x = pi;
will be inlined by the compiler, it would yield the effect of a
manifest constant! :)
More information about the Digitalmars-d
mailing list