Re: [Vala] Question about some wiki content
- From: Jonas Kulla <nyocurio gmail com>
- To: Steven Oliver <oliver steven gmail com>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] Question about some wiki content
- Date: Wed, 15 Jan 2014 19:32:57 +0100
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]