Static Constructors

bearophile bearophileHUGS at lycos.com
Sat Oct 4 11:22:46 PDT 2008


Saaa:
> foreach (Fruit f; fruit)
> {
> f.stuff();
> }

Note that often this is enough:

foreach (f; fruit)
    f.stuff;

But I generally put the parentheses:

foreach (f; fruit)
    f.stuff();

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list