dumper::ifcNew
ifcNew item
Start a new item ... 'lappend' will not redefine the interface whenever the template is sourced, but instead extend It ... thus each property is duplicated n-times!
Therefore set is absolutely necessary, here --commutative behavior. 'Set' can't replace lappend, since lappend accepts empty arguments without making a fuss. This is a job for 'lappendunique'.
ifcNew is being used by ::vgcode::insertClassDef clients.
Example 3.23. ::vgcode::insertClassDef using ifcNew
... foreach attr \ [lsort \ [array names qq]] { append result \ [dumper::newline] \ [dumper::ifcNew $attr]
Copyright © 2009–2010 Arndt Roger Schneider