D at shootout.alioth.debian.org

bearophile bearophileHUGS at lycos.com
Fri Jun 4 15:14:10 PDT 2010


BLS:
> Have the same feeling. Question remains is > What instead?
> /ctfe/ int r = fact(100);

In D2 I use enum:
enum int r = fact(100);

(I think I have not yet understood of the full meaning given by Walter to "static" for variables in D).

Bye,
bearophile


More information about the Digitalmars-d mailing list