[dmd-beta] rvalue references
Jonathan M Davis
jmdavisProg at gmx.com
Thu Apr 12 12:46:02 PDT 2012
On Thursday, April 12, 2012 20:00:33 Andrej Mitrovic wrote:
> On 4/12/12, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> > Which I would have expected to be illegal, but for some bizarre reason,
> > the
> > compiler allows it.
> >
> > http://d.puremagic.com/issues/show_bug.cgi?id=7854
>
> Without that ability, or without the ability to use pointers to
> references (which currently works), writing wrapper code to C/C++
> libraries is going to be difficult.
Why do you need more than just normal pointers? Because of this proposal
making taking the address of a ref illegal? If anything, I think that the need
to be able to pass the address of refs to C functions is a good example of why
@system code should still be able to take the address of refs.
- Jonathan M Davis
More information about the dmd-beta
mailing list