yarv-dev:121
From: shudo computer.org
Date: Sun, 25 Jul 2004 02:08:22 +0900
Subject: [yarv-dev:121] Re: another project
しゅどうです。 > ko1> 淺川さんの日記はっけーん > ko1> http://www.teens-spirit.com/diary.php/A0000/ > > しかし、若い・・・。 はたち。若い。。。 淺川さんの日記 5/19 に、こういう記述を見つけました: ==================== 今のところ下のコードを.NETの実行ファイルにコンパイルすることが出来ます。 class Object def Object.Sin(val) val2 = 0.0 + val #print( val2 ) print( System.Math.Sin( val2.ToDouble() ) ) end end class Test def testfunc() print( "testfunc()" + "\n" ) end def Test.print() print( "hello" + "\n" ) end end def main val1 = 1 + 2 + 3 + 4 # val2 = val1 * 3 - 4 # val1 = val3 + val2 val1.print() val2 = "hello" + 123 + "\n" val2.print() if 0 val4 = Test.new() val2 = 1245 val2 = "1234" end val2.print() Sin( 3.14 ) end ==================== Kazuyuki Shudo/首藤一幸 私をたばねないで あらせいとうの花のように shudo computer.org http://www.shudo.net/ -- ML: yarv-dev quickml.atdot.net 使い方: http://www.atdot.net/~ko1/quickml
115 2004-07-24 05:27 [ko1 atdot.net ] another project 116 2004-07-24 12:05 ┗[matz ruby-lang.org ] 117 2004-07-24 16:33 ┗[ko1 atdot.net ] 118 2004-07-24 17:26 ┗[matz ruby-lang.org ] 119 2004-07-24 17:31 ┗[ko1 atdot.net ] 120 2004-07-24 17:34 ┗[ko1 atdot.net ] -> 121 2004-07-25 02:08 ┗[shudo computer.org ]