comp.lang.tcl
[Top] [All Lists]

Re: expr and strings

Subject: Re: expr and strings
From: Kevin Kenny
Date: Sat, 31 May 2008 11:25:38 -0400
Newsgroups: comp.lang.tcl


Gerald W. Lester wrote:
On the other hand, as we have eq and ne to compare strings, shouldn't
we have a lt, le, gt, ge for explicit string comparison and leaving <,
<=, >, >= specifically for integer comparison?

No, because that would break an *awful* lot of existing scripts.

Actually, as long as [string compare] remains, 'lt', 'le', 'gt', 'ge'
can be implemented without any script breakage at all.  And I've been
contemplating proposing exactly that.  But I've been holding off
because dgp appears to be planning major surgery on the expression
parser, and the change will be easier to work in once he's done.

--
73 de ke9tv/2, Kevin

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy