[phobos] [D-Programming-Language/phobos] fc3d63: Work around GDC's wrongness w.r.t. function argume...

David Simcha dsimcha at gmail.com
Wed Apr 27 17:37:15 PDT 2011


Clarification of this commit:  GDC evaluates function arguments right to 
left, not left to right.  This isn't going to be fixed anytime soon and 
causes std.algorithm.reduce to produce incorrect results.  
std.algorithm.reduce is important enough that, if it doesn't work, 
that's a showstopper for GDC.  Therefore, I stuck a couple lines of 
workaround code in Phobos.  Was there some obscure reason the code was 
previously written the way it was?

On 4/27/2011 8:33 PM, noreply at github.com wrote:
> Branch: refs/heads/master
> Home:   https://github.com/D-Programming-Language/phobos
>
> Commit: fc3d63612dcf4f7bb6462ab398d5b11ce1009587
>      https://github.com/D-Programming-Language/phobos/commit/fc3d63612dcf4f7bb6462ab398d5b11ce1009587
> Author: dsimcha<dsimcha at gmail.com>
> Date:   2011-04-27 (Wed, 27 Apr 2011)
>
> Changed paths:
>    M std/algorithm.d
>
> Log Message:
> -----------
> Work around GDC's wrongness w.r.t. function argument evaluation order.
>
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
>



More information about the phobos mailing list