From: Donald G P. <dg...@ni...> - 2011-05-26 15:03:23
|
Brian Griffin wrote: > Assuming *all* Tcl/Tk commands that are looking for numbers call > Tcl_GetIntFromObj(interp, objPtr, intPtr) or similar, would it be > reasonable if these calls all performed an [expr objPtr]? When the command procedure for a command is written, the author already has available the free choice on how to interpret the arguments passed in. In particular, the author can choose whether they would rather call Tcl_ExprDoubleObj() instead of Tcl_GetDoubleFromObj(). You appear to be suggesting only that several of Tcl's built-in commands might be revised to make the Expr*Obj choice instead of the Get*FromObj choice currently coded. -- | Don Porter Mathematical and Computational Sciences Division | | don...@ni... Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________| |