Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
August 29, 2011 [Issue 6572] New: Deprecate typedef | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6572 Summary: Deprecate typedef Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: accepts-invalid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: yebblies@gmail.com --- Comment #0 from yebblies <yebblies@gmail.com> 2011-08-30 01:48:24 EST --- typedef needs to issue a deprecation error when used in D2. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 29, 2011 [Issue 6572] Deprecate typedef | ||||
---|---|---|---|---|
| ||||
Posted in reply to yebblies | http://d.puremagic.com/issues/show_bug.cgi?id=6572 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #1 from yebblies <yebblies@gmail.com> 2011-08-30 02:23:47 EST --- https://github.com/D-Programming-Language/dmd/pull/354 https://github.com/D-Programming-Language/druntime/pull/63 https://github.com/D-Programming-Language/phobos/pull/224 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 29, 2011 [Issue 6572] Deprecate typedef | ||||
---|---|---|---|---|
| ||||
Posted in reply to yebblies | http://d.puremagic.com/issues/show_bug.cgi?id=6572 Trass3r <mrmocool@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mrmocool@gmx.de --- Comment #2 from Trass3r <mrmocool@gmx.de> 2011-08-29 09:31:22 PDT --- Shouldn't we provide a complete library based typedef first? http://d.puremagic.com/issues/show_bug.cgi?id=5467 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 29, 2011 [Issue 6572] Deprecate typedef | ||||
---|---|---|---|---|
| ||||
Posted in reply to yebblies | http://d.puremagic.com/issues/show_bug.cgi?id=6572 Iain Buclaw <ibuclaw@ubuntu.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ibuclaw@ubuntu.com --- Comment #3 from Iain Buclaw <ibuclaw@ubuntu.com> 2011-08-29 10:01:12 PDT --- *sadface* I think it is better to catch this in the parser stage, rather than semantic. --- Dsymbols *Parser::parseDeclarations --- if (tok == TOKtypedef) + { + if (!global.params.useDeprecated) + error("typedef is deprecated, use alias"); v = new TypedefDeclaration(loc, ident, t, init); + } Regards Iain -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 30, 2011 [Issue 6572] Deprecate typedef | ||||
---|---|---|---|---|
| ||||
Posted in reply to yebblies | http://d.puremagic.com/issues/show_bug.cgi?id=6572 --- Comment #4 from yebblies <yebblies@gmail.com> 2011-08-30 12:42:31 EST --- (In reply to comment #2) > Shouldn't we provide a complete library based typedef first? http://d.puremagic.com/issues/show_bug.cgi?id=5467 Maybe, probably. (In reply to comment #3) > *sadface* > > I think it is better to catch this in the parser stage, rather than semantic. > > > --- Dsymbols *Parser::parseDeclarations --- > if (tok == TOKtypedef) > + { > + if (!global.params.useDeprecated) > + error("typedef is deprecated, use alias"); > v = new TypedefDeclaration(loc, ident, t, init); > + } > > > Regards > Iain Wouldn't this prevent using typedef even inside version(none) etc blocks? Is that something we want? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 20, 2011 [Issue 6572] Deprecate typedef | ||||
---|---|---|---|---|
| ||||
Posted in reply to yebblies | http://d.puremagic.com/issues/show_bug.cgi?id=6572 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #5 from Walter Bright <bugzilla@digitalmars.com> 2011-11-19 20:21:01 PST --- https://github.com/D-Programming-Language/dmd/commit/a22fd423f3896dd17d59e39cdb809ba7721faad2 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation