473,406 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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.
Jul 24 '05 #1
4 1211
maadhuu wrote:
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.


Looks like homework. I seem to recall similar questions 20 years ago in
my language syntax classes.
Jul 24 '05 #2
definitely not Homework......atleast someone tell me what dynamic scoping
is and how it is implemented.

Jul 25 '05 #3
* maadhuu:
definitely not Homework......atleast someone tell me what dynamic scoping
is and how it is implemented.


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?
Jul 25 '05 #4
thanks for the help.

Jul 25 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

33
by: Arthur | last post by:
>>>a= >>> for p in a: print p 1 2 3 >>> p 3 My naive expectation was that p would be 'not defined' from outside
7
by: wwj | last post by:
Hi ,all I want to know the difference between char a and char *p=new char and the difference between the heap and the stack ,and if the char a is corresponding to the stack in MEMORY,and char...
34
by: yensao | last post by:
Hi, I have a hard time to understand difference and similarities between Relational database model and the Object-Oriented model. Can somebody help me with this? Thank you in advance. ...
2
by: Adam Clauss | last post by:
Basically, my question is in terms of performance and the garbage collector - Is there any difference between a) letting a variable simply go out of scope b) explicity setting it to null once I am...
15
by: Marcel | last post by:
Hi, I've found some sample code to put some text into Word. I'm testing this code to learn from it, but I can't find an explanation for the use of CType in the following code. Can someone...
13
by: dmh2000 | last post by:
I am experimenting with the interactive interpreter environments of Python and Ruby and I ran into what seems to be a fundamental difference. However I may be doing something wrong in Python....
12
by: Keith Patrick | last post by:
Can someone tell me the difference in terms of actual implications using: namespace MyNamespace { using System; class MyClass {...} } vs. using System;
0
by: Cousson, Benoit | last post by:
This is a language limitation. That was my understanding as well, but I think it is a pity to have that limitation. Don't you think that the same improvement that was done for method nested scope...
0
by: Calvin Spealman | last post by:
Please re-evaluate your "need" for nesting classes in the first place. On Tue, Aug 12, 2008 at 1:06 PM, Cousson, Benoit <b-cousson@ti.comwrote: -- Read my blog! I depend on your acceptance...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.