Should alias this support implicit construction in function calls and return statements?
d coder
dlang.coder at gmail.com
Thu Dec 13 08:28:50 PST 2012
I do not know if I am missing something but consider:
struct Foo {
int r;
int i;
bool get() {
return true; // always return true
}
alias get this;
}
So I am wondering how it would be possible to construct Foo from a bool?
Otherwise how would the compiler be able to figure out in what scenarios
reverse conversion is possible and is intended.
Regards
- Puneet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20121213/2d153764/attachment.html>
More information about the Digitalmars-d
mailing list