Changeset 891 for trunk/modules/abstract.tcl
- Timestamp:
- 02/17/08 18:54:27 (11 months ago)
- Files:
-
- 1 modified
-
trunk/modules/abstract.tcl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/abstract.tcl
r862 r891 344 344 } 345 345 346 } 347 348 # look to see if an abstract contains an item (warning: could be slow) 349 proc 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 } 346 365 } 347 366
