2007年9月5日水曜日

L Sharp .NET (Lisp.NET?)

Lispで .NetFrameWorkを使えるというもの
■L Sharp .NET
http://www.lsharp.org/

Lispの基礎もしらんけど
とりあえずやってみた。

TextBoxとButtonが1つあるFormを作成。
------
(reference "System.Windows.Forms")
(reference "System.Drawing")
(reference "System")

(using "System")
(using "System.Windows.Forms")
(using "System.Drawing")

(= textbox1 (new TextBox))
(call set_Text textbox1 "textbox")

(= button1 (new Button))
(call set_Location button1 (new Point 100 100))
(call set_Text button1 "Button")

(= form1 (new Form))
(call set_Text form1 "title")
(call add (call Controls form1) textbox1)
(call add (call Controls form1) button1)

; apprication start
(call EnableVisualStyles Application)
(call Run Application form1)
------

関数型言語。
どことなーく気持ち悪い...しっくりこない
もう少し遊んでみようかな~。
.

0 件のコメント:

ラベル