Overview
| Artifact ID: | 50abe3241d02e2deac72a4cde84798a761fecef4 |
|---|---|
| Ticket: | 1306288fffffffffffffffffffffffffffffffff
Tcl_ParseExpr misdocumented and/or misnamed |
| User & Date: | dgp on 2005-09-29 00:12:32 |
Changes
- closedate changed to: "2005-09-28T17:12:32"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 "These are not the droids you are looking for" Tcl_ParseExpr() is meant to parse a string as a Tcl expression. If/when Tcl's expression support changes, so does Tcl_ParseExpr(), so you'll see that the ** operator for exponentiation is parsed in Tcl 8.5 but not in earlier Tcl releases. Likewise, as you suggest, if/when Tcl expressions support operating on unlimited range integers (pending for Tcl 8.5 -- TIP 237) the expression parser will accept them as syntactically valid Tcl expressions. Tcl_ParseExpr() isn't meant to be any kind of general parsing engine for general expressions. Whether that's misdocumentation of misnaming, or just a strong assumption that within Tcl we assume a context of Tcl is a matter of opinion I suppose. And I do see your point about the implementation not providing a 100% "clean" separation between lexical matters and semantic matters. That will continue to be true in the forseeable future.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Closed"
- username: "dgp"