Examples of using the parameterized class, Stack, to derive subclsses:


    class ImageStack is Stack#(Image);  
	// derive a image stack class as a subclass

    stack: Stack#(Graph)(1000);
	// create an Graph stack and assigned it to a variable



[ Go back to tutorial | Tutorial home page | Transframe home page ]

More examples: