>
>
> 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
> [email protected]
> 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);
}
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta