Alternate signs in a range

Stanislav Blinov stanislav.blinov at gmail.com
Sun Jan 26 06:13:26 PST 2014


On Sunday, 26 January 2014 at 13:45:32 UTC, matovitch wrote:

> Anyway, the proposed solutions use twice much memory than a 
> simple for loop...

???

> is the compiler smart enougth to optimize this kind of code ?

There are ongoing discussions on what and how current D compilers 
optimize nowadays. I don't have a link though.


More information about the Digitalmars-d-learn mailing list