auriocus / VecTcl

Numeric array and linear algebra extension for Tcl
http://auriocus.github.io/VecTcl
Other
34 stars 9 forks source link

Cannot use "strings" inside a vproc (?) #8

Closed bsdooby closed 6 years ago

bsdooby commented 6 years ago

Example: vexpr { DBG = "message"; puts($DBG)}

this results in a parse error message: Error: Parse error in line 1:7

auriocus commented 6 years ago

This is correct; at the moment the parser in VecTcl does not support strings. Apart from that, there is another error in the code, the "$" sign is not supported or needed for dereferencing. What works is variables previously assigned with a string, i.e.

set DBG "message" vexpr { puts(DBG) }

bsdooby commented 6 years ago

Ah yes, thank you for the clarification. Keep up the good work with VecTcl (any future plans?).