ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 13日 (月) 01:23:10 JST
------------------------- REMOTE_ADDR = 184.145.90.35 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-treeview-model-retrieve ------------------------- @@ -28,4 +28,4 @@ printf("Row %s: %s %s, born %i\n", path.to_str, iter[0], iter[1], iter[2]); end -One thing worth pointing out: means that we need to free it once we are done with it; the second is that all fields of a row are set to a default nil value appropriate for the data type in question. A field of type Integer will contain the value 0 until it is set to a new value, and strings and all kind of pointer types will be nil until set to something else. Run the above program with an additional empty row and look at the output to see this in effect. +One thing worth pointing out: means that we need to free it once we are done with it (oops this is Ruby not C!?); the second is that all fields of a row are set to a default nil value appropriate for the data type in question. A field of type Integer will contain the value 0 until it is set to a new value, and strings and all kind of pointer types will be nil until set to something else. Run the above program with an additional empty row and look at the output to see this in effect.