2010-09-27から1日間の記事一覧
「猫C#」の第8章はクラスとメソッドの紹介ですが、再帰呼び出しは vala でも行えるので、ref と out を調べてみる。swap01.vala も swap02.vala も値渡しなので、本と同じ結果になる。 // swap01.vala class myclass { private int temp; public void swap (…
「猫C#」の第8章はクラスとメソッドの紹介ですが、再帰呼び出しは vala でも行えるので、ref と out を調べてみる。swap01.vala も swap02.vala も値渡しなので、本と同じ結果になる。 // swap01.vala class myclass { private int temp; public void swap (…