Using inout in delegates

Jacob Carlborg doob at me.com
Sat Oct 6 10:01:37 PDT 2012


On 2012-10-05 16:09, Ali Çehreli wrote:

>
> This workaround makes the compiler happy:
>
> void foo (inout(int)[] arr)
> {
>      auto a = (inout int) { auto b = arr[0]; };
> }
>
> But probably not what you want. :/
>
> IIRC, inout has bugs and incomplete implementation. I think this should
> be in the bug database.

Hmm, I'll see if I can use that, thanks.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list