next up previous contents index
Next: Rendering to Raster Image Up: Referencing Tcl data Previous: @references   Contents   Index

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



vmd@ks.uiuc.edu