oop tutorials

Saaa empty at needmail.com
Thu Mar 6 22:11:48 PST 2008


>    auto store = new Bike[10];
>    store[] = new Bike(null);

Would anything change if I would replace those two lines with:

Bike[10] store;

(It compiles, runs and outputs the same)

Because I read those two lines as:
> Allocate memory for 10 bikes
> free the memory 




More information about the Digitalmars-d-learn mailing list