Is [] mandatory for array operations?
bearophile
bearophileHUGS at lycos.com
Sat May 8 04:45:15 PDT 2010
Johan Granberg:
> I think it is an
> acceptable tradeof that the people that need optimal speed write there code
> in a more uncompressed formm using manual loops or wathewer. Then the cases
> not on the criitical path of the program can be written more compactly
> using a slightly slower but much faster to write style.
In this specific case the compiler must become smarter and able to optimize away the performance loss. Otherwise it's a failed language and a failed compiler.
Bye,
bearophile
More information about the Digitalmars-d
mailing list