Re: [Vala] Question about some wiki content



2014/1/15 Steven Oliver <oliver steven gmail com>

The decrement inside the IF is permanent? Even if the IF statement
evaluates to false?

public void down () {
        if (--ref_count == 0) {
            delete (void*) this;
        }
    }

Steven N. Oliver


Yes, this is basic C syntax:
http://en.wikipedia.org/wiki/Increment_and_decrement_operators


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]