digitalmars.D.bugs - [Issue 2864] New: intra-module use of deprecated should be allowed
- d-bugmail puremagic.com Apr 20 2009
- d-bugmail puremagic.com Apr 20 2009
- d-bugmail puremagic.com Aug 08 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2864 Summary: intra-module use of deprecated should be allowed Product: D Version: 2.029 Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: bugzilla digitalmars.com Andrei Alexandrescu wrote:Ok, I've undeprecated rand_seed, sigh. I was hoping I'd eliminate rand() entirely from this release, but Walter pointed out it would break too much code. So I left rand() and rand_seed() as deprecated. Now I only left rand() deprecated so at least the static constructor works.
I think the right fix for that is for the compiler to not complain about deprecated symbol usage if the usage is in the same module the deprecated symbol is defined in. --
Apr 20 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2864 unknown simplemachines.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |unknown simplemachines.org ------- Comment #1 from unknown simplemachines.org 2009-04-20 22:18 ------- It should be left enabled if warnings are requested though, IMHO. I can see deprecating something and wanting to clean my own code of it easily. Would be embarrassing if my own code still used it. -[Unknown] --
Apr 20 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2864 Stewart Gordon <smjg iname.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smjg iname.com --- Comment #2 from Stewart Gordon <smjg iname.com> 2009-08-08 12:17:10 PDT --- The problems are: - even when developing your own library, you'll likely want reminding if you inadvertently use one of your own deprecated entities - when you're ready to release a stable version of your product, you ought to be able to just delete everything that's deprecated and be done with it Perhaps better would be some form of 'deprecatedly public' as I suggested once.... http://www.digitalmars.com/d/archives/digitalmars/D/Suggestion_More_deprecation_features_73796.html -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 08 2009









d-bugmail puremagic.com 