[Issue 3680] default struct constructor should not be removed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 19 02:50:54 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3680
--- Comment #8 from Michel Nolard <michel.nolard at gmail.com> 2010-01-19 02:50:53 PST ---
* This comment is more a remainder for myself than a new comment. *
There is a way to introduce a opAssign( typeof( this ) rhs ) using templates,
although it is prohibited. The technique can be _accidentally_ (I ensure you
this really happens) used to add a opCall or this with the wrong signature.
This is based on the fact that the template's type inference occurs at a
different time than the opAssign's signature validation.
I just have to find back where I used it to give you an example to be sure that
that case also is managed in the proposal.
--
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