array error
bearophile
bearophileHUGS at lycos.com
Sun Jul 20 05:09:38 PDT 2008
Koroskin Denis:
> - you can declare array like "int mVector[];" as well as "int[] mVector;".
I don't agree, the right way to declare it in D is "int[] mVector;".
The other way is just for code translated from C (and to confuse programmers. As the Zen of another language says: "There should be one-- and preferably only one --obvious way to do it." So I'd probably like to remove that syntax).
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list