Inout table

nkm1 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Sep 8 19:00:23 PDT 2017


There is this little table in 
https://dlang.org/spec/function.html#inout-functions:

Common qualifier of the two type qualifiers
                    mutable const  immutable inout inout const
mutable (= m)      m       c      c         c     c
const (= c)        c       c      c         c     c
immutable (= i)    c       c      i         wc    wc
inout (= w)        c       c      wc        w     wc
inout const (= wc) c       c      wc        wc    wc

I don't understand what it is trying to say. What is it that is 
calculated here? The qualifier for the return value?
And what's an "inout const"?


More information about the Digitalmars-d-learn mailing list