[dmd-beta] rvalue references
Max Samukha
maxsamukha at gmail.com
Wed Apr 11 23:29:54 PDT 2012
>
>
> Walter likes the idea that we first introduce the restriction in @safe
> code alone. I think we must eventually introduce it for all code, and my
> understanding is that Walter is also convinced of that.
>
>
>
> Andrei
> ______________________________**_________________
> dmd-beta mailing list
> dmd-beta at puremagic.com
> http://lists.puremagic.com/**mailman/listinfo/dmd-beta<http://lists.puremagic.com/mailman/listinfo/dmd-beta>
>
I think the language should allow taking addresses of references in unsafe
context. One valid and fairly frequent case is passing the address to C:
extern(C) external_foo(S* s);
void foo(ref S s)
{
external_foo(&s);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20120412/4957c498/attachment.html>
More information about the dmd-beta
mailing list