> On Mon, 15 Dec 2003, Tom Jackson wrote:
>
> > I wonder why the empty string returns true for
> > every class.  With the -scrict switch " 1" is also true, so strict
> > doesn't really add much except returning 0 for the empty string.
>
> I seem to recall reading once on comp.lang.tcl that [string
> is] returns true to make certain Tk bindings simpler.  Such as:
>
>     entry .e -validatecommand "string is integer %P"

That is exactly correct.  I wrote that code when I was working on
forms, doing a lot of validation.  In retrospect, I should have
thought of the basic Tcl feature first and made allowing "" the
option, but such a change will have to wait until a major version
change.

  Jeff Hobbs, The Tcl Guy
  http://www.ActiveState.com/, a division of Sophos


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to