Tcl 8.3 is rather old, and the recommended path for upgrading from TclPro (as I see you're using from comments) to something less… antediluvian… is to purchase the Tcl Dev Kit from ActiveState, which is at least the spiritual successor and has current support. Nobody supports TclPro any more.
That said…
Now, with Tcl 8.3 the equivalent of the functionality of the eq
operator was the string equal
command (in 8.4, they actually compile to the same bytecode; one is a short-cut for the other). This means that for this:
if {"a" eq "b"} {...
would be instead written as this:
if {[string equal "a" "b"]} {...
though if you've definitely got a non-integer for one of the arguments, you can just use this:
if {"a" == "b"} {...
There is no mechanism for aliasing operators in any version of Tcl (well, certainly not up to 8.6, which is the current development/beta version).
The Gripping Hand
As Bryan says, you can write your own versions of expr
(and if
and for
and while
) that have this extended functionality, but that's a lot of work (i.e., months including all the testing, though you can probably reuse the test suite from Tcl 8.4 to help) and it's just so you can use a version of Tcl that is known to be obsolete. (I have no idea if it has security issues in it, and you can't pay me enough for me to want to try to find out.) You're better off paying for the TDK.