[Issue 8264] [std.conv.to] constructing conversion doesn't work with alias this
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 18 22:43:00 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8264
Jonathan M Davis <jmdavisProg at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jmdavisProg at gmx.com
--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-06-18 22:45:19 PDT ---
Is it really bug? What if you have
struct Wrap
{
string wrap;
int i;
double d;
string s;
alias wrap this;
}
Should Wrap("foo") create the same thing as Wrap("foo", int.init, double.init,
string.init)? Or should it not work? Maybe it should work, but it seems a bit
funny to me to create a Wrap from just a string considering that the alias
doesn't define how to initialize the rest of the object.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list