Skip to content
Tcl Source Code View Ticket
Login

View Ticket

[dict exists foo foo] returns 0 instead of throwing an error

Closed / Duplicateac867ea57cd66839c6b079984d2219bad1e69d67Created 9 years agoUpdated 9 years ago
Descriptionplain2018-05-20 07:51:04
% dict exists foo foo
0

The above should throw an error since {foo} is not a valid dictionary. Consider the roughly equivalent list version

% lsearch  {a b "} c
unmatched open quote in list

which seems the correct behaviour to me.
apnadkarni Closed ticket [ac867ea57c]. [History diff]2018-05-20 08:01:30
Log in (anonymous is fine) to add a comment.