[Issue 1869] Semantically returning an array from a funciton is	difficult
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Feb 25 13:46:22 PST 2008
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=1869
------- Comment #1 from shro8822 at vandals.uidaho.edu  2008-02-25 15:46 -------
The reason that static arrays can't be returned is that they are pointers to
local variables. That is in reference to this code:
>int[10] a;
>return a;
however IIRC you can have a function return type int[4]:
>int[4] fn(int i, int[4][4] j) { return j[i]; }
I guess I'm not realy understanding what your concern is.
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list