Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2010-06-22
19:26 • Closed ticket [3019351fff]: lset wrong # args error message inconsistency pl... artifact: 411c2e42b1 user: dkf
08:36 • Ticket [3019351fff]: 1 change artifact: 17b55b21db user: andygoth
08:35 • Ticket [3019351fff]: 2 changes artifact: b271a1f0be user: andygoth
01:34 • New ticket [3019351fff]. artifact: 42d3e8a6ce user: andygoth

lset wrong # args error message inconsistency

Closed / Fixed3019351fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 16 years ago
Descriptionplain2010-06-22 01:34:45
% lset
wrong # args: should be "lset listVar index ?index ...? value"

This error message implies that the first index argument is required and subsequent index arguments are optional.  In fact, all index arguments are optional.

% set foo {}
% lset foo something
something
andygoth Ticket [3019351fff]: 2 changes [History diff]2010-06-22 08:35:26
andygoth Ticket [3019351fff]: 1 change [History diff]2010-06-22 08:36:08
dkfplain2010-06-22 19:26:24
allow_comments - 1

Fixed in HEAD and 8.5 branch.
Log in (anonymous is fine) to add a comment.