Skip to content

dbgarlisch/tcl-Param

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tcl-Param

This tcl library provides typed parameters.

Depends On

Project tcl-Utils

Using The Library

To use this library to create typed parameters, you must include Param.tcl in your application script.

  source "/some/path/to/your/copy/of/Param.tcl"

Declare and initialize the application's data values.

  set myInt [Param new integer 1]
  $myInt = 3
  $myInt = xx ;# error - Invalid

  set myDbl [Param new double 1.0]
  $myDbl = 3.5
  $myDbl = xx ;# error - Invalid

  Param typedef double Scale {>0 10.5}
  set scale [Param new Scale 1.0]
  $scale = 5.3
  $scale = 0.0 ;# error - out of range
  $scale = 10.5
  $scale = 10.50001 ;# error - out of range

See the tcl-Param API Docs for full library documentation.

About

A typed parameter library (with option ranges)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages