[Issue 9112] Uniform default construction
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 5 18:12:50 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9112
Jonathan M Davis <jmdavisProg at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jmdavisProg at gmx.com
--- Comment #2 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-12-05 18:12:49 PST ---
What I really want to be able to do is stuff like
auto i = new int(5);
auto j = new immutable(int)(7);
Right now, you have to do nonsense like
auto i = new int;
*i = 5;
auto temp = new int;
*temp = 7;
auto j = cast(immutable(int)*)temp;
Pointers to primitive types are just plain ugly to initialize, especially when
const and immutable come into play.
--
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