ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-core
tcl-core
Re: [TCLCORE] TIP #266: Numbers are Commands
by Arjen Markus other posts by this author
Apr 13 2006 11:56PM messages near this date
Re: [TCLCORE] TIP #266: Numbers are Commands | Re: [TCLCORE] TIP #266: Numbers are Commands
Kristoffer Lawson wrote:

> 
>  The .0 problem is a real one but, I believe, one which should be  
>  clearly stated in the manpage and that it should be made obvious why  
>  the correct form is [0.0 + 3].

But the form ".0" is perfectly acceptable to other programming languages 
as representing a
"floating-point" zero. It could also arise as the result of an operation:

set a [1.0 * 0.0]
$a + 1.0

The string representation of a zero, as generated by the underlying C 
function, should
then be checked to include the leading "0".

Another thing: what would be the interpretation of:

set a [1.0 + 1.0 1.0 1.0 - 3.0 3.0 3.0 * 4.0 4.0 4.0]

The mixture of operators and numbers makes me feel uncomfortable ...

Regards,

Arjen





-------------------------------------------------------
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved