diff --git a/jasspa/macros/tcl.eaf b/jasspa/macros/tcl.eaf index 0b01535..2f9071e 100644 --- a/jasspa/macros/tcl.eaf +++ b/jasspa/macros/tcl.eaf @@ -117,6 +117,10 @@ arrnam "array names \parr pattern?\P" " array names" arrset "array set \parr $list\P" " array set" arrsize "array size \parr \P" " array size" "" "" + "" " \ecCTclOO:\ecA " +oocl "oo::class create \p {\r variable options\rconstructor {args} {\r # default options\rmy variable options\rarray set options [list -opt val]\rmy configure {*}$args\r\B\B\B\B}\rmethod configure {args} {\r my variable options\rif {[llength $args] == 0} {\r return [array get options]\r\B\B\B\B} else {\r array set options $args\r\B\B\B\B}\r\B\B\B\B}\r\B\B\B\B}\r\P" " oocl" +oome "method \p {} {\r my variable options\r\B\B\B\B}\r\P" " oome" +ooob "set \p [clsname new -opt val]\P" " ooob" "" " \ecCSnit:\ecA " snitwidget "snit::widget \p {\r constructor {args} {\r $self configurelist $args\r }\r}\P" " snit::widget" snittype "snit::type \p {\r constructor {args} {\r $self configurelist $args \r }\r}\P" " snit::type"