xyzzyの使い方が分からぬやし 励ましあえ その12at SOFTWARE
xyzzyの使い方が分からぬやし 励ましあえ その12 - 暇つぶし2ch111:108
09/01/03 20:28:50 rbhkd7ZK0
>>110
ありがとうございます!macroexpand で比較してみました。

   (defconstant *n-const* 2)

   (macroexpand '(case *n-const* (1 'one) (2 'two) (3 'three)))
      => (let ((#1=#:key *n-const*)) (if (eql #1# '1) (progn 'one) (if (eql #1# '2) (progn 'two) (if (eql #1# '3) (progn 'three) nil))))

   (macroexpand '(cond ((= *n-const* 1) 'one) ((= *n-const* 2) 'two) ((= *n-const 3) 'three)))
      =>(if (= *n-const* 1) 'one (if (= *n-const* 2) 'two (if (= *n-const 3) 'three nil)))

これからxyzzyの内部構造を勉強します。いいキッカケになりました。感謝、感謝です。

(参考)
URLリンク(xyzzy.s53.xrea.com)
URLリンク(xyzzy.s53.xrea.com)
URLリンク(himadatanode.qp.land.to)
URLリンク(www2.ocn.ne.jp)


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch