082267_lesson3

082267_lesson3 - CS 367 Programming Languages Lesson 3...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 367 Programming Languages Lesson 3 Problem Set Questions Chapter 5 2. What are the obvious advantages and disadvantages of having no types in a language? The obvious disadvantages of not having any types are that the programmer would be required to create his/her own functions to define the “type” of variable that is required. On the other hand, this can also be advantageous because it allows for a lot of flexibility if the requirements for the needed type are very specific. 5. Explain the relationship between dynamic type binding and implicit heap dynamic variables. Dynamic type binding occurs during run time and can be changed throughout a program’s execution. With dynamic type binding the variable is not specified by a declaration statement but rather through an assignment statement. Similarly, in implicit heap dynamic variables, the allocation and de-allocation is also caused by assignment statements.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/19/2011 for the course CS 367 taught by Professor Unkown during the Spring '09 term at Grantham.

Ask a homework question - tutors are online