[Issue 11943] Emit warning for default initialized pointers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 18 14:57:48 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11943



--- Comment #5 from bearophile_hugs at eml.cc 2014-01-18 14:57:44 PST ---
(In reply to comment #4)
> > Weren't you against warnings?
> 
> Not as a path towards deprecation and eventually making it an error.

You fuss about even tiny breaking changes of my my enhancement requests, and
now are you suggesting to eventually turn this into an error?

int* p;

I see no evidence that this whole idea will improve the situation.

And how do you initialize dynamic arrays of pointers/references?

auto arr = new int*[10];

I suggest to read some updated research papers on the whole topic (about F*,
and other from Microsoft Research), and look at how other modern languages
solve this problem.

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


More information about the Digitalmars-d-bugs mailing list