On 4/12/12, Max Samukha <[email protected]> wrote:
> 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);
> }
>

FWIW You can actually use 'ref' in an extern(C) function:
extern(C) external_foo(ref S s);

wxD uses it.
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta

Reply via email to