next up previous contents index
Next: Creating Output Raster Images Up: Referencing Tcl data Previous: @references

The differences

The difference between the two notations ($ and @) is somewhat subtle and occurs because the original selection language is not as dynamic as one would expect. The key thing to remember about Tcl references is they are used only where keywords are allowed. $variables are for keywords that have a value while @variables are for boolean keywords. That means variable references cannot be in the parameter list for the value keywords (e.g., resname $name is not allowed). Instead, the comparison operators must be used (as in resname eq $name).



Justin Gullingsrud
Tue Apr 6 09:22:39 CDT 1999