Skip to content
Tcl Source Code View Ticket
Login

View Ticket

granularity other than 1 allows interp to exceed limits

Opena06ed2007534afa81a5114aea802efae233dee0eCreated 13 years agoUpdated 13 years ago
Descriptionplain2013-10-22 18:51:16
The example below illustrates the problem.  Once an excess has been detected, the limit should be enforced as if the granularity was 1 until a new limit is set, at which point the original granularity should again become active.

% interp limit a command -granularity 2 -value 2
% a eval set toe knuckle
knuckle
% a eval set toe knuckle
command count limit exceeded
% a eval set toe knuckle
knuckle
% a eval set toe knuckle
command count limit exceeded
dkfhtml2013-10-22 19:02:35

Not urgent to fix as there was never a guarantee that limit enforcement points would actually occur at all possible points where they could occur.

dkf Ticket [a06ed20075]: 3 changes [History diff]2013-10-22 19:02:59
dkf Ticket [a06ed20075]: 3 changes [History diff]2013-11-12 14:44:04
Log in (anonymous is fine) to add a comment.