[Issue 3652] Allow implicit casting of dynamic array slices of known size to static array

2009-12-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3652



--- Comment #1 from Witold Baryluk bary...@smp.if.uj.edu.pl 2009-12-26 
14:18:34 PST ---
So essentially problem is that slices are just dynamic arrays. So bringing back
the topic of making slices different/distinctive types.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 3652] Allow implicit casting of dynamic array slices of known size to static array

2009-12-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3652



--- Comment #2 from Witold Baryluk bary...@smp.if.uj.edu.pl 2009-12-26 
14:21:40 PST ---
It is even worse that i was innitially thinking:

explicit casting doesn't work:
series2.d(113): Error: e2ir: cannot cast qs[0u..1u] of type float[] to type
float[1u]

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---