--- a/Queue.st Sat Jul 22 23:38:50 1995 +0200
+++ b/Queue.st Sat Jul 22 23:48:52 1995 +0200
@@ -21,7 +21,7 @@
COPYRIGHT (c) 1993 by Claus Gittinger
All Rights Reserved
-$Header: /cvs/stx/stx/libbasic2/Queue.st,v 1.9 1995-05-16 17:10:58 claus Exp $
+$Header: /cvs/stx/stx/libbasic2/Queue.st,v 1.10 1995-07-22 21:48:34 claus Exp $
'!
!Queue class methodsFor:'documentation'!
@@ -42,7 +42,7 @@
version
"
-$Header: /cvs/stx/stx/libbasic2/Queue.st,v 1.9 1995-05-16 17:10:58 claus Exp $
+$Header: /cvs/stx/stx/libbasic2/Queue.st,v 1.10 1995-07-22 21:48:34 claus Exp $
"
!
@@ -96,9 +96,9 @@
!
new
- "return a new queue with space for 10 elements"
+ "return a new queue with space for some elements"
- ^ self new:10
+ ^ self new:50
! !
!Queue methodsFor:'initialization'!
@@ -202,4 +202,10 @@
"return the number of elements in the queue"
^ tally
+!
+
+capacity
+ "return the number of elements the queue can hold"
+
+ ^ contentsArray size
! !