Show
Ignore:
Timestamp:
02/17/08 18:54:27 (11 months ago)
Author:
james
Message:

exciting times

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/abstract.tcl

    r862 r891  
    344344        } 
    345345 
     346} 
     347 
     348# look to see if an abstract contains an item (warning: could be slow) 
     349proc bMotion_abstract_contains { abstract item } { 
     350        bMotion_putloglev 4 * "abstract: bMotion_abstract_contains $abstract $item" 
     351 
     352        set contents [bMotion_abstract_all $abstract] 
     353        putlog $contents 
     354 
     355        if {[llength $contents] == 0} { 
     356                return 0 
     357        } 
     358 
     359        set location [lsearch $contents $item] 
     360        if {$location > -1} { 
     361                return 1 
     362        } else { 
     363                return 0 
     364        } 
    346365} 
    347366