Re: Why isn't "dash" a wordchar?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Why isn't "dash" a wordchar?

From: Adrian Ho <tcl@03s.net>
Date: Tue Mar 28 2006 - 02:38:38 CEST

On 2006-03-27, Bob Binder <nospam@domain.com> wrote:
> Although this behavior is apparently consistent with the cited Unicode
> standard, it is inconvenient. I'd like a built-in string class that
> recognizes all valid Tcl names, including option identifiers with their
> leading dash, the dollar sign, etc.

If by "valid Tcl names" you mean "valid Tcl identifiers", then pretty
much *all* characters (including whitespace) are legal in one (some form
of escaping may of course be necessary in certain cases).

Perhaps if you could describe the problem you're actually trying to
solve, we may be able to suggest a different approach.

- Adrian
Received on Sun Apr 30 02:51:12 2006