(.. Neither of these types is currently implemented. They are nothing more than restricted cases of a List, so if you need them use a List instead.)
// Stack -- form of list with add/remove both at start of list // @deftype Stack <List> - (void) push: anObject; - pop; @end // // Queue -- form of list with add at start of list and remove at last // @deftype Queue <List> - (void) enqueue: anObject; - dequeue; @end
@deftype Stack <List> @deftype Queue <List>...
- (void) push: anObject; - pop;...
- (void) enqueue: anObject; - dequeue;...