[Issue 5074] array(immutable(int)[]) ==> int[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Oct 19 09:42:34 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5074
--- Comment #2 from bearophile_hugs at eml.cc 2010-10-19 09:41:54 PDT ---
(In reply to comment #1)
> to!(int[])(a) should take care of that.
There are also const casts:
array(cast(int[])a1)
But the design point of array() is to digest anything you may iterate, and
produce a dynamic array. So I think array(immutable(int)[]) should not require
casts or to!().
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list