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.

<strong>Type</strong> <strong>Checking</strong>• A type error results from the application of an operator toan operand of an inappropriate type.• Static type checking: if all type bindings are static, nearlyall type checking can be done statically (Ada, C/C++, Java).• Dynamic type checking: if type bindings are dynamic, typechecking must be dynamic (Javascript, PHP).• Strong typing: a programming language is strongly typed iftype errors are always detected.– Done either at compile time or run time.– Advantages: allows the detection of the misuses of variables thatresult in type errors.Lecture 0547

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

Saved successfully!

Ooh no, something went wrong!