13.07.2015 Views

Lecture 13 Slides - Suraj @ LUMS

Lecture 13 Slides - Suraj @ LUMS

Lecture 13 Slides - Suraj @ LUMS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Java with GenericsCo-routinesimport java.util.Hashtable;class Test {public static void main(String[] args) {Hashtable h =new Hashtable();h.put(new Integer(0), "value");String s = h.get(new Integer(0));System.out.println(s);CoroutinesChapter 10 Topics• The General Semantics of Calls and Returns• Implementing “Simple” Subprograms• Implementing Subprograms with Stack-DynamicLocal Variables• Nested Subprograms• Blocks• Implementing Dynamic Scoping2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!