Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

"Concepts of Programming languages" by Robert Sebesta says -

Implicit Heap-Dynamic Storage Binding:

Implicit Heap-Dynamic variables are bound to heap storage only when they are assigned values.
It is similar to dynamic type binding.

Can anyone explain the similarity with suitable examples. I understand the meaning of both the phrases, but I am an amateur when it comes to in-depth details.

share|improve this question
add comment

1 Answer

The example once again from Robert Sebesta's Concepts of Programming Languages 9th edition:

highs = [74, 84, 86, 90, 71];

This Javascript array is only brought into being when its assigned values. It then gets placed in the heap as a collection of those values.

It would bind those values to that variable. It would not necessarily tell you what type they were. That part will be dependent on other language semantics.

share|improve this answer
    
Thanks for your reply :) –  jsp99 Mar 24 '12 at 4:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.