Deque.capacity
From OpenEUO
Revision as of 17:07, 18 December 2010 by Ximan (Talk | contribs) (Created page with "== Calling Pattern == Call local d = sl.deque() -- later local r = d.capacity() Results r is a number == Description == Calling capacity returns the maximum capacity of the...")
Calling Pattern
Call
local d = sl.deque() -- later local r = d.capacity()
Results
r is a number
Description
Calling capacity returns the maximum capacity of the queue. Currently capacity is unlimited, as denoted by a return value of -1. Future versions (0.07+) of deque will allow an upper bound to be specified in order to support circular queues.
Upon Error
Errors are reported and handled according to the operant error redirection mode.