10.07.2015 Views

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Evaluation of Pointers & References• Problems due to dangling pointers and memory leaks.• Heap management can be complex and costly.• Pointers are analogous to goto's:– goto’s widen the range of statements that can be executed next.– pointers widen the range of cells that can be accessed by a variable.• Pointers or references are necessary for dynamic datastructures, so we can't design a language without them:– pointers are essential for writing device drivers.– references in Java and C# provide some of the capabilities ofpointers, without the hazards.Lecture 0645

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

Saved successfully!

Ooh no, something went wrong!