1. Computing & Technology

Discuss in my forum

Michael Morin

Bindings

By , About.com GuideJuly 14, 2010

Follow me on:

You can use eval to run code from a string, but things are not as simple as they seem. The eval method executes code, but where in the program is that code executed? The context in which code is executed is called a binding. Code is bound to a context of instance variable, local variables, and global variables. If you were to reference the variable x, it's up to the binding to decide which variable named x you're referring to.

Read the complete article

Comments
No comments yet.  Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>
Related Searches july 14

©2012 About.com. All rights reserved.

A part of The New York Times Company.