Artifacts Associated With Ticket 475397ffffffffffffffffffffffffffffffffff
Ticket change [59dc3422b0] (rid 118038) by dgp on 2001-10-26 18:36:11:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
$ tclsh % switch a a {} c % switch a [list a {} c] Both examples are illegal calls of [switch] because they include a pattern without a body, but neither raises an error. An error should be raised in each case. - foundin initialized to: "obsolete: 8.4a4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to: "[switch] accepts illegal arguments"
- type initialized to: "Bug"
Ticket change [05d5ce5b5e] (rid 89121) by dgp on 2001-10-27 03:51:46:
- icomment:
Logged In: YES user_id=80530 Note also switch a {a {} default -} vs switch b {a {} default -} and switch a {a {} b -} vs. switch b {a {} b -} The common thread is that errors aren't caught until an attempt to evaluate them is made. Finally, note the inconsistency of switch a and switch a {} The man page for switch say both should raise an error. I'd be happier if both were successful no-ops. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [5114cb115a] (rid 126079) by dkf on 2001-11-27 20:33:54:
- closedate changed to: "2001-11-27T13:33:54"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 I've fixed all these and made the behaviour consistent between when the arms are done as separate arguments and when they are a list, though I've tightened up in favour of making [switch a {}] produce an error as that is consistent with the documentation. - login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"