Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand
From: Mike Tuxford (tuxfordNOSPAM_at_NORETURNearthlink.net)
Date: 04/27/04
- Next message: Ravi: "Re: Using TCL instead of CORBA"
- Previous message: Mike Tuxford: "Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand"
- In reply to: Mike Tuxford: "Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand"
- Next in thread: Donald Arseneau: "Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 27 Apr 2004 02:28:19 GMT
Mike Tuxford <tuxfordNOSPAM@noreturnearthlink.net> wrote:
:Bruce Hartweg <bruce-news@hartweg.us> wrote:
::
::
::Mike Tuxford wrote:
::
::> Darren New <dnew@san.rr.com> wrote:
::> :Kevin Kenny wrote:
::> :> The *string* command supports tests for a number of Tcl's basic types,
::> :> for example, integers, doubles, and booleans. This TIP proposes adding
::> :> wide integers.
::> :
::> :Perhaps [string is wideint] might be a better name. For example, when I
::> :first looked at the title, I thought it would be testing for wide
::> :characters, i.e., outside the ASCII 7-bit range.
::> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
::> Myself, I'd like one of those. Currently I am doing like this:
::>
::> scan $char %c num
::> if {$num>31 && $num<127} {
::>
::> or am I just missing something?
::>
::maybe
::
::string is ascii
::string is print
::string is control
:
: Yeah, but doesn't fit my needs. If it fails the [if] then control
:flows to:
:
: } else {
: switch -- $num {
: 2 { # ^B routine }
: 3 { # ^C routine }
: ...
:
Ok, not making good sense here am I? I need to do some more tests
and get a better understanding of [string is <ascii|print|control>]
because I know they weren't working out for me in the particular
proc I was writing.
It should work to use them in a multiple [if] and then use [scan]
if needed to get the integer vakues.
-- _ _ ____ //\/\ike ||uxford tuxford@earthlink.net
- Next message: Ravi: "Re: Using TCL instead of CORBA"
- Previous message: Mike Tuxford: "Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand"
- In reply to: Mike Tuxford: "Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand"
- Next in thread: Donald Arseneau: "Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|