[Issue 12213] DMD accepts invalid alias declaration
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 20 02:04:35 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12213
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2014-02-20 02:04:21 PST ---
template X(string a, string b) {}
alias Y(string b) = X!("a", b);
The alias declaration is equivalent with:
template Y(string b)
{
alias Y = X!("a", b);
}
This is a new feature from 2.064, which had been proposed as DIP42.
http://wiki.dlang.org/DIP42
And the feature will be finally documented in 2.065 release.
https://github.com/D-Programming-Language/dlang.org/pull/371
--
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