www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - int[3] a = [1, 2, 3]; // Why heap?

reply Mehrdad <wfunction hotmail.com> writes:
I'm just wondering, is there a plan to fix the

|int[3] a = [1, 2, 3];
|

issue, to not make it allocate on the heap?

It kind of sucks to see people bash D for something so trivial like this. :\
Aug 01 2011
parent reply Don <nospam nospam.com> writes:
Mehrdad wrote:
 I'm just wondering, is there a plan to fix the
 
 |int[3] a = [1, 2, 3];
 |
 
 issue, to not make it allocate on the heap?
 
 It kind of sucks to see people bash D for something so trivial like 
 this. :\
Yes. It's bug 2356.
Aug 01 2011
parent Mehrdad <wfunction hotmail.com> writes:
On 8/1/2011 6:32 AM, Don wrote:
 Mehrdad wrote:
 I'm just wondering, is there a plan to fix the

 |int[3] a = [1, 2, 3];
 |

 issue, to not make it allocate on the heap?

 It kind of sucks to see people bash D for something so trivial like 
 this. :\
Yes. It's bug 2356.
Ah ok thanks!
Aug 01 2011