On Thu, Apr 12, 2012 at 1:06 PM, Sean Kelly <[email protected]> wrote:
> On Apr 10, 2012, at 5:57 PM, Walter Bright wrote: > > > I couldn't remember what the big problem was with rvalue references, and > so I spent some time on the phone talking with Andrei about what exactly > the problem is. They are: > > > > 1. > > C++: > > int i; > > double& d = i; > > I'm shocked that this is legal. Why allow implicit conversions when > assigning to a reference? > > No. In C++, this is ill-formed but MSVC accepts this code...
_______________________________________________ dmd-beta mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/dmd-beta
