![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archiveRe: Bug in spinbox
From: Adrian Ho <tcl@03s.net>
Date: Sun Feb 26 2006 - 10:07:22 CET
On 2006-02-26, bgd <bgd73@verizon.net> wrote:
No. Your code can return incorrect results if run during, say, 31 Dec
day=31 mon=December year=2006
Only the first and last are (obviously) acceptable, and Ulrich's code
More importantly, Ulrich's code is *obviously correct*. Anyone with
The logic in your code, however, is so obfuscated that I:
* spent at least a minute inspecting it to determine that the logic
* actually felt the need to run your code in a tclsh to assure myself
* only realized 5 minutes later that there's at least twelve corner
As a demonstration of just how flexible Tcl is, I applaud your attempt,
- Adrian
|