[Issue 7019] implicit constructors are inconsistently allowed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 26 10:39:06 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7019


Vladimir Panteleev <thecybershadow at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow at gmail.com


--- Comment #6 from Vladimir Panteleev <thecybershadow at gmail.com> 2012-01-26 10:39:05 PST ---
(In reply to comment #5)
> I vote for doing the opposite of C++ and introducing a @implicit tag for
> constructors that are to be used in the fashion I depicted.

If we had opImplicitCast (for implicit casting of "this" to another type), this
could have been named opImplicitCast_r (for implicit casting of another type to
typeof(this)).

-- 
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