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

7.9.3 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).



Sergei Izrailev
Fri Jul 25 17:07:27 CDT 1997