Re: [TCLCORE] TIP #266: Numbers are Commands
by Brian Griffin other posts by this author
Apr 13 2006 9:36AM messages near this date
Re: [TCLCORE] TIP #266: Numbers are Commands
|
Re: [TCLCORE] TIP #266: Numbers are Commands
Peter MacDonald wrote:
> Another issue to document: collateral breakage:
>
> set x [.0 + 3]
> ...
> frame .0
> ...
> set x [.0 + 3]
>
> The first [set x] works, but not the second. Maybe this suggests that the
> syntax should require braces
>
> set x [(.0+3)]
>
Do you mean parentheses (()), or do you really mean braces ({})? I
think requiring braces is a bad idea.
I think in this case ".0" should *not* be recognized as a number. This
is not an unreasonable restriction for expressions, IMO.
-Brian
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
Kristoffer Lawson
Arjen Markus
Peter MacDonald
Kristoffer Lawson
Peter MacDonald
Kristoffer Lawson
Peter MacDonald
Kristoffer Lawson
Arjen Markus
dgp
Arjen Markus
Brian Griffin
Peter MacDonald
Kristoffer Lawson
Gustaf Neumann
Donal K. Fellows
Donald G Porter
Neil Madden
David N. Welton
Arjen Markus
Kristoffer Lawson
Neil Madden
Kristoffer Lawson
Lars Hellström
Neil Madden
Kristoffer Lawson
|