[Issue 13981] std.algorithm: inconsistent handling of static arrays
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Thu Oct 22 11:58:50 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=13981
bearophile_hugs at eml.cc changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc
--- Comment #4 from bearophile_hugs at eml.cc ---
The compile-time knowledge of the length of an array is a very precious
information, throwing this information away is foolish, especially when the
array is short:
int[3] a = [1, 10, 30];
immutable total = a.sum;
--
    
    
More information about the Digitalmars-d-bugs
mailing list