If we do end up replacing inout with something else, I would like something which solves the problem of declaring functions returning ranges of either mutable, const, or immutable. I've struggled with that before: https://github.com/w0rp/dstruct/blob/master/source/dstruct/graph.d#L628
I think it has something to do with making the function, in this
case a lambda, inout, so that it can accept inout types. Then the
typeof bit is a weird way to writing something like
__traits(compiles, ...) , because functions which have no type
result in void, and that fails the typeof check.
- Re: So wh... Steven Schveighoffer via Digitalmars-d
- Re: So wh... Andrei Alexandrescu via Digitalmars-d
- Re: So wh... Steven Schveighoffer via Digitalmars-d
- Re: So wh... Marc Schütz via Digitalmars-d
- Re: So wh... Nick Treleaven via Digitalmars-d
- Re: So what does (inout in... Dmitry Olshansky via Digitalmars-d
- Re: So what does (inout in... Jacob Carlborg via Digitalmars-d
- Re: So what does (inout int = 0) do... Shammah Chancellor via Digitalmars-d
- Re: So what does (inout int = ... Andrei Alexandrescu via Digitalmars-d
- Re: So what does (inout int = 0) do... Walter Bright via Digitalmars-d
- Re: So what does (inout int = ... w0rp via Digitalmars-d
- Re: So what does (inout in... w0rp via Digitalmars-d
- Re: So what does (inout int = ... Andrei Alexandrescu via Digitalmars-d
- Re: So what does (inout int = 0) do... deadalnix via Digitalmars-d
- Re: So what does (inout int = ... Andrei Alexandrescu via Digitalmars-d
- Re: So what does (inout int = 0) do... Timon Gehr via Digitalmars-d
- Re: So what does (inout int = ... Timon Gehr via Digitalmars-d
- Re: So what does (inout int = ... Adam D. Ruppe via Digitalmars-d
- Re: So what does (inout int = ... Andrei Alexandrescu via Digitalmars-d
- Re: So what does (inout in... Marco Leise via Digitalmars-d
- Re: So what does (inou... Lass Safin via Digitalmars-d
