Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems evaluating a boolean expression with Tcl_ExprBoolean!

Status
Not open for further replies.

panickedkernel

Programmer
Dec 15, 2000
2
0
0
US
Ok guys, heres the low down, i am trying to evaluate the expression:
(5556027 != 12345678901). heres how i am doing it...

psExpression = "(5556027 != 12345678901)";
/* pInterp is the pointer to my tcl interpreter obviously */
then i call Tcl_ExprBoolean(pInterp, psExpression, &bResult);

this returns TCL_ERROR, and the subsequent call to Tcl_GetStringResult(pInterp) returns:

"integer value too large to represent"

however, i am able to evaluate (5556027 != 1234567890), so its the length of the second operand (>10 chars) that is killing me. I am using tcl 8.1p1.

My question is this, is this a limitation of tcl (i dont see how it is) or is this a problem with how i have my interpreter cofigured? ANY help would be greatly appreciated.

--Louis (loualexa@nospam.cisco.com)
(remove the nospam first please)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top