Skip to content

Commit

Permalink
adding tcl00 abbrev
Browse files Browse the repository at this point in the history
  • Loading branch information
Detlef Groth committed Dec 31, 2024
1 parent 8661fce commit 741f2b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jasspa/macros/tcl.eaf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
"" ""
"" "</FOLD><FOLD+> \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"
"" "</FOLD><FOLD+> \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"
Expand Down

0 comments on commit 741f2b3

Please sign in to comment.