modern Tcl and correct quoting

Clemens Lang cal at macports.org
Wed Jun 12 13:58:12 PDT 2013


Hi,

On Wed, Jun 12, 2013 at 04:33:56PM -0400, Lawrence Velázquez wrote:
> Note that changing something like
>     if {$whatever == "yes"} { foo } else { bar }
> into
>     if {$whatever} { foo } else { bar }
> subtly changes the semantics of the conditional. This transformation
> is only valid if $whatever is certain to be a valid Tcl boolean.

I think we do have [tbool whatever] for that, we're just not using it
everywhere we could.

-- 
Clemens Lang



More information about the macports-dev mailing list