• ↖ Home
  • Developer´s Guide
    • ↑ Contents
    • Code
    • Embedding
    • Tcl
    • SVG
    • SVG-Import
    • Projects
    • License
    • Index
  • Download
    • Jeszra: Source Code

    • Ruby Wrapper Classes
    • Python Wrapper Classes
    • Lisp Wrapper Classes
  • Books@Lulu.com...
    • Jeszra: Design by Gestalt
    • Jeszra Library: Design by Gestalt

    • Gestalt Items
    • Runtime Library
  • Manual
    • Jeszra Book

    • Tcl Manual
    • Ruby Manual
    • Python Manual
    • Lisp Manual

    • API
  • About
ifcNew
← Chapter 3. Tcl- Code Generation →

Name

dumper::ifcNew

Synopsis

          ifcNew item
        

Description

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'.

Clients

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]
   



← ↖ →
itemproperties ↑ inlay
SourceForge Logo

Copyright © 2009–2010 Arndt Roger Schneider