[Issue 11943] Emit warning for default initialized pointers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 18 05:26:10 PST 2014


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #2 from bearophile_hugs at eml.cc 2014-01-18 03:55:07 PST ---
I think this is a bad idea, and it doesn't solve the the intended problem,
beside having other problems. Weren't you against warnings? Instead I suggest
you to do this (in this order):
1) Go read 5 or 10 good recent research papers on this topic;
2) Go look at how 3 or 4 recently designed languages already solve this
problem;
3) Go in the D newsgroup, present your proposed solution and discuss it with
people;
4) Write a DIP, discuss it and try to remove all its corner cases and difficult
situations;
5) Try to implement it, offer it as experimental solution (with some compiler
switch? A pragma?), and collect usage opinions from people.
6) Fix and improve the design and implementation.
7) If all is OK, make it a permanent feature of the language, otherwise remove
it from the compiler.

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