[Issue 5347] Add constructors for primitive types to make pointers easier to use

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 13 02:22:20 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5347


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com


--- Comment #1 from yebblies <yebblies at gmail.com> 2010-12-13 02:20:32 PST ---
This doesn't seem like something that would be used very often.

You could instead use 

int* i = [7].ptr;

which should generate the same code, due to the way primitive types are
allocated.

-- 
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