Re: Bug in spinbox
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: Bug in spinbox

From: Adrian Ho <tcl@03s.net>
Date: Sun Feb 26 2006 - 15:58:45 CET

On 2006-02-26, Adrian Ho <tcl@03s.net> wrote:
> For [foreach] to assign the same value to each of day/mon/year, the
> result of [clock format] must be a list of 1 element.

Sorry, I misspoke. It should've been:

For [foreach] to assign the same value to each of day/mon/year, the
result of [clock format] must either be a list of 3 identical values
(eg. [list "26 February 2006" "26 February 2006" "26 February 2006"]) or
the empty string (in which case day=mon=year={}).

This is a logical consequence of:

If a value list does not contain enough elements for each of its loop
variables in each iteration, empty values are used for the missing
elements. - [foreach] man page

- Adrian
Received on Sun Apr 30 02:16:02 2006