inout based on this reference?

Simen kjaeraas simen.kjaras at gmail.com
Sun Aug 29 14:36:24 PDT 2010


Is it possible to make a function return dependent upon the constancy of  
the this reference?

i.e. this:

struct foo {
    int n;
    inout( ref int ) getn( ) inout {
        return n;
    }
}


-- 
Simen


More information about the Digitalmars-d-learn mailing list