Re: empty list
- From: "slebetman@xxxxxxxxx" <slebetman@xxxxxxxxx>
- Date: 10 Apr 2006 22:44:50 -0700
Don Porter wrote:
Darren New wrote:
Now, if you specifically want to set a particular non-string
representation in order to make procs that do different things based on
non-string representation work differently, then sure, that's a whole
different ball of wax.
And 99% of the time it indicates that command is broken. Commands
provided by Tcl extensions and packages should honor Tcl's Everything
Is A String principle. [foo 0] and [foo [expr 0]] ought to have
equivalent function.
To be fair, MartinLemburg is doing some funky numerical stuff which
covers the 1% and there's no indication that he's interfacing with
another language. In this case all of Tcl's built in functions are
broken due to the fact that you lose precision when your "double"
shimmers. I think this will be rectified in 8.5 but for now he needs
the funky code as a workaround.
Personally I've never written such a code. Usually the only time I use
doubles or float is when drawing on the canvas so I don't often care if
I'm as much as 0.5 off. So I'm in the camp of "let it shimmer naturally
and automatically" because it is less to type and easier on my eyes to
read. But it's nice to know that people are using Tcl to do some
"serious" computing.
.
- Follow-Ups:
- Re: empty list
- From: Don Porter
- Re: empty list
- From: MartinLemburg@UGS
- Re: empty list
- From: MartinLemburg@UGS
- Re: empty list
- From: MartinLemburg@UGS
- Re: empty list
- References:
- empty list
- From: Niv (KP)
- Re: empty list
- From: Niv (KP)
- Re: empty list
- From: slebetman@xxxxxxxxx
- Re: empty list
- From: bs
- Re: empty list
- From: slebetman@xxxxxxxxx
- Re: empty list
- From: Donald Arseneau
- Re: empty list
- From: MartinLemburg@UGS
- Re: empty list
- From: Darren New
- Re: empty list
- From: MartinLemburg@UGS
- Re: empty list
- From: Darren New
- Re: empty list
- From: Don Porter
- empty list
- Prev by Date: Re: smtp and starpacks
- Next by Date: Problem
- Previous by thread: Re: empty list
- Next by thread: Re: empty list
- Index(es):