control.tcl

Go to the documentation of this file.
00001 /*  control.tcl --*/
00002 /* */
00003 /*  This is the main package provide script for the package*/
00004 /*  "control".  It provides commands that govern the flow of*/
00005 /*  control of a program.*/
00006 /* */
00007 /*  RCS: @(#) $Id: control.tcl,v 1.15 2005/09/30 05:36:38 andreas_kupries Exp $*/
00008 
00009 package require Tcl 8.2
00010 
00011 namespace ::control {
00012     variable version 0.1.3
00013     namespace export assert control do no-op rswitch
00014 
00015     ret  control (type command , type args) {
00016     # Need to add error handling here
00017     namespace eval [list $command] $args
00018     }
00019 
00020     /*  Set up for auto-loading the commands*/
00021     variable home [file join [pwd] [file dirname [info script]]]
00022     if {[lsearch -exact $::auto_path $home] == -1} {
00023     lappend ::auto_path $home
00024     }
00025 
00026     package provide [namespace tail [namespace current]] $version
00027 }
00028 

Generated on 21 Sep 2010 for Gui by  doxygen 1.6.1