Use S4 class for 'stack' data structure
commitb4b5ce300e0e033c5db8473ecf38b7953e224244
authorRoger D. Peng [amelia] <rpeng@jhsph.edu>
Mon, 11 Aug 2008 03:12:37 +0000 (10 23:12 -0400)
committerRoger D. Peng [amelia] <rpeng@jhsph.edu>
Mon, 11 Aug 2008 03:14:57 +0000 (10 23:14 -0400)
treeb0c93db79d4ccf9feeaad74d377c69e320404d24
parent0b6947e651f864a3cc1f4faa80ce7ac8fabc6507
Use S4 class for 'stack' data structure

For 'top' and 'pop', also signal an error if the stack is empty
rather than just returning 'NULL'.
NAMESPACE
R/stack.R