More ... | Edit History:ViewContent of 匿名ラベル at 2015/09/10 23:24:29 JSTView diff from current version * 匿名ラベル 他の言語の匿名関数のようにラベルオブジェクトを生成するマクロ。 button命令なんかに渡すラベルをいちいち書くのが面倒なときなどに便利。 CommonLispっぽくクオート記号に割り当てました。 改良求みます。 {{{ #define ` %tquote *%i : if 0 : *%o }}} * サンプル {{{ #define ` %tquote *%i : if 0 : *%o button gosub "test", `{ dialog "TEST" return } }}} * 入れ子のサンプル {{{ #define ` %tquote *%i : if 0 : *%o button gosub "test", `{ dialog "TEST1" gosub `{ dialog "TEST2" } return } }}} |