Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 24th, 2005, 04:55 PM
maadhuu
Guest
 
Posts: n/a
Default difference in the following terms with examples. (regarding scope and binding)

hello,
i want to know the proper meanings and usage of the following .
a>. dynamic scoping (an online link will be extremely helpful . and what
is lexical scoping or static scoping ??

b>. binding in general and then , dynamic binding and static binding.

Thanking all those who might answer this.....Thanks once more.


  #2  
Old July 24th, 2005, 08:35 PM
red floyd
Guest
 
Posts: n/a
Default Re: difference in the following terms with examples. (regarding scopeand binding)

maadhuu wrote:[color=blue]
> hello,
> i want to know the proper meanings and usage of the following .
> a>. dynamic scoping (an online link will be extremely helpful . and what
> is lexical scoping or static scoping ??
>
> b>. binding in general and then , dynamic binding and static binding.
>
> Thanking all those who might answer this.....Thanks once more.
>
>[/color]

Looks like homework. I seem to recall similar questions 20 years ago in
my language syntax classes.
  #3  
Old July 25th, 2005, 06:55 AM
maadhuu
Guest
 
Posts: n/a
Default Re: difference in the following terms with examples. (regarding

definitely not Homework......atleast someone tell me what dynamic scoping
is and how it is implemented.

  #4  
Old July 25th, 2005, 07:15 AM
Alf P. Steinbach
Guest
 
Posts: n/a
Default Re: difference in the following terms with examples. (regarding

* maadhuu:[color=blue]
> definitely not Homework......atleast someone tell me what dynamic scoping
> is and how it is implemented.[/color]

You don't have that in straight C++.

See <url:
http://en.wikipedia.org/wiki/Scope_%28programming%29#Static_versus_dynamic_scop ing>,
but skimming that explanation I found it hard to follow (even though I know
something about the subject matter), so perhaps pick up a good Lisp or
Scheme book?

Most Lisp books I've seen explain dynamic scoping more clearly than
Wikipedia currently does.

Short of it: when a function refers to an identifier A the reference is
bound to some variable or something depending on where in the call chain an
A was most recently defined, and the call chain is a runtime thing.

Dynamic scoping is of interest in C++ when functional-style programming is
added e.g. in the form of libraries like <url:
http://spirit.sourceforge.net/distrib/spirit_1_7_0/libs/spirit/phoenix/index.html>.
However I don't know whether Phoenix supports dynamic scoping.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
  #5  
Old July 25th, 2005, 04:25 PM
maadhuu
Guest
 
Posts: n/a
Default Re: difference in the following terms with examples. (regarding

thanks for the help.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles