I think it was me that was probably unclear. If you don't use the "create" keyword, then you can still create multiple vectors with the same command. This works in both 2.x and 3.x. bltsh30 % blt::vector x(30) y(30) z(30) I'm not 100% clear as to why syntactical compatibility between 2.x and 3.x is needed. Nor why the vectors need to created in a single command. Is this because the TCL code making the call can't be changed? [It wasn't my goal in 3.x to be 100% backward compatible with 2.x syntax....
I believe the syntax blt::vector /arrayName/(/len/) works the same in both versions. Since the create operation has switches in 3.x, the old syntax of blt::vector create /arrayName/(/len/) ... * * could not be cleanly maintained. [The idea in 2.x was to have the vector look like a data type instead of a command.] ** You would still have to set the values to 0.0 to replicate the 2.x behavior. --gah On 7/6/22 18:27, Edward Sternin wrote: BLT v.3 significantly changed the syntax of the |vector| command....
I agree that the behavior should be the same as TCL. I'll make the changes. --gah On 7/5/22 13:17, Edward Sternin wrote: [bugs:#159] https://sourceforge.net/p/blt/bugs/159/ unnecessary and harmful underflow error in vector Status: open Group: Created: Tue Jul 05, 2022 06:17 PM UTC by Edward Sternin Last Updated: Tue Jul 05, 2022 06:17 PM UTC Owner: nobody In |bltVecMath.c| the test for underflow in vector |expr| calculations produces unexpected behaviour, an error "floating-point value too small...
sync master
Add global -nodefault flag to argument parser
Add global -nodefault flag to argument parser
sync master
Fix comment