Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 354 results for
scoping
- Page 1
Scoping Issues
Programming
Computer Science
13 Years Ago
by maurya10
Can any1 help me in differentiating between dynamic and static
scoping
by using examples ??
Re: Scoping Issues
Programming
Computer Science
13 Years Ago
by Rashakil Fol
Dynamic
scoping
is just global or thread-local variables with some cheesewiz.
Static Scoping and Dynamic Scoping
Programming
Software Development
14 Years Ago
by jyotishkardey
Can u plz. explain static
scoping
and dynamic
scoping
in c++??
Re: Static Scoping and Dynamic Scoping
Programming
Software Development
14 Years Ago
by mike_2000_17
[URL="http://en.wikipedia.org/wiki/Static_scoping#Dynamic_scoping"]Wikipedia[/URL] I never heard of dynamic
scoping
, and to no surprise after reading this wiki. There is no dynamic
scoping
in C++, and frankly, I'm happy there is none because it seems more hurtful than helpful.
new ISO `for' scoping?
Programming
Software Development
18 Years Ago
by aPPmaSTer
…: [INLINECODE]name lookup of `j' changed for new ISO `for'
scoping
[/INLINECODE] Here's the part of the code where it…
name lookup of ‘j’ changed for new ISO ‘for’ scoping
Programming
Software Development
16 Years Ago
by BoneXXX
…: error: name lookup of ‘j’ changed for new ISO ‘for’
scoping
dynn.cpp:370: error: using obsolete binding at ‘j’ [/code…
[Error] name lookup of 'n' changed for ISO 'for' scoping [-fpermissive]
Programming
Software Development
11 Years Ago
by Jake_4
… solution? ([Error] name lookup of 'n' changed for ISO 'for'
scoping
[-fpermissive]) line 25, col 17 (the 'n' is the problem…
Re: [Error] name lookup of 'j' changed for ISO 'for' scoping [-fpermissive]
Programming
Software Development
11 Years Ago
by rubberman
Mike2K points out a common coding issue - proper
scoping
of loops. My personal process says "scope everything" - loops, conditionals (if/then/else), etc. IE, place proper brackets around all loops and conditional blocks of code. Then, when you need to add a line to them, they will still be properly constrained! :-)
Scoping anonymous functions
Programming
Web Development
15 Years Ago
by chamika.deshan
Hi I have a loop looping through an "band" object array. I am assigning a anonymous functions for the object property(actually dragging) [CODE]for (var j=0;j<5;j++) { var othis = this.bands[j]; othis.onDragstart = (function() {return othis.onDragstartResizeHandle()}); }[/CODE] onDragstartResizeHandle function [CODE]…
Re: Scoping anonymous functions
Programming
Web Development
15 Years Ago
by chamika.deshan
[QUOTE]othis.onDragstart = (function() {return othis.onDragstartResizeHandle()});[/QUOTE] This is crazy. If i not travelling a loop and access objects one by one like [CODE]var othis1 = this.bands[0]; othis1 .onDragstart = (function() {return othis1 .onDragstartResizeHandle()}); var othis2 = this.bands[1]; othis2 .onDragstart = (function() {…
Re: new ISO `for' scoping?
Programming
Software Development
18 Years Ago
by iamthwee
Declare int j before the for loop. int j; for( j=count;j<prod;j++); { ct[j][0]=50+(j-count+1)*offset; //error here count++; }
Re: new ISO `for' scoping?
Programming
Software Development
18 Years Ago
by aPPmaSTer
Yep, that fixed it. Thanks a bunch!
Re: new ISO `for' scoping?
Programming
Software Development
18 Years Ago
by Salem
> for(int j=count;j<prod;j++); It didn't fix a damn thing, you just moved the problem. The scope of 'j' ends at that ; at the end of the line - this is a loop which does NOTHING then exists. Had you removed this ; then the problem would have fixed itself and the loop would do what you want. As no doubt you're about to comment that now…
Re: new ISO `for' scoping?
Programming
Software Development
18 Years Ago
by iamthwee
Ah never noticed the semicolon there.
Re: new ISO `for' scoping?
Programming
Software Development
18 Years Ago
by aPPmaSTer
Lol, me neither! And you're right, the first solution just let the thing compile, but the program didn't actually work the way it was supposed to. This fixed it for real. Thanks!
Re: name lookup of ‘j’ changed for new ISO ‘for’ scoping
Programming
Software Development
16 Years Ago
by Ancient Dragon
At line 17 of the code you posted the variable [b]j[/b] is only visible in that for loop. If you want to use that variable again on line 21 it will have to be declared again just like it was on line 17. Another way to fix the problem is to declare that variable on line 14 similar to the way those other integers were declared, then remove the …
Re: name lookup of ‘j’ changed for new ISO ‘for’ scoping
Programming
Software Development
16 Years Ago
by BoneXXX
Thank you very much, problem is fixed.
Re: [Error] name lookup of 'n' changed for ISO 'for' scoping [-fpermissive]
Programming
Software Development
11 Years Ago
by Labdabeta
This is one of those sneaky bugs. Basically it is telling you that if you declare a variable in the for loop, it only lasts as long as the for loop. At first glance it looks like you only ever use 'n' inside your loop. You are wrong. Let me re-write your code with some different whitespace-ing and you will see why: // loop to generate audio …
compiling errors
Programming
Software Development
19 Years Ago
by sahil_logic
…: error: name lookup of `j' changed for new ISO `for'
scoping
C:\Dev-Cpp\files\patterns.cpp:98: error: using obsolete…: error: name lookup of `p' changed for new ISO `for'
scoping
C:\Dev-Cpp\files\patterns.cpp:112: error: using obsolete…
Re: STRUCT program wont compile...
Programming
Software Development
15 Years Ago
by mrjjkalyn
… 70 - name lookup of 'j' changed for new ISO 'for'
scoping
" I believe you get this error because the old…
scoping
for 'for' loops was: for(int i=0; i<… 70 - name lookup of 'j' changed for new ISO 'for'
scoping
line 68 - using obsolete binding at 'j' does anyone have…
Homework -Pascal Language -Please help me !:(
Programming
Software Development
15 Years Ago
by fillit
… of the above PASCAL program using a) static b) dynamic
scoping
rules. 2) Show the lifetimes of the variables and parameters… the environments of the above program using static and dynamic
scoping
rules at points (1), (2), and (3). its my homework…
obsolete binding at `a' error C++
Programming
Software Development
20 Years Ago
by Nicanor
…: error: name lookup of `a' changed for new ISO `for'
scoping
accounts.cpp:234: error: using obsolete binding at `a' here…
Re: obsolete binding at `a' error C++
Programming
Software Development
20 Years Ago
by Dave Sinkula
…: error: name lookup of `a' changed for new ISO `for'
scoping
accounts.cpp:234: error: using obsolete binding at `a'[/quote…
Please Help
Programming
Software Development
19 Years Ago
by babyjoan
…:11: name lookup of `j' changed for new ANSI `for'
scoping
matrix.cpp:8: using obsolete binding at `j' matrix.cpp…
Re: Please Help
Programming
Software Development
19 Years Ago
by Ancient Dragon
…:11: name lookup of `j' changed for new ANSI `for'
scoping
matrix.cpp:8: using obsolete binding at `j' matrix.cpp…
vector iterators vs operator []
Programming
Software Development
17 Years Ago
by JRM
… different animal than an integer? Not to mention the possible
scoping
problem? It didn't work if I used an actual…
Re: vector iterators vs operator []
Programming
Software Development
17 Years Ago
by thekashyap
… different animal than an integer? Not to mention the possible
scoping
problem?[/quote] You guessed correctly abt the different animal thing…
Help with error in using iterator in a for loop
Programming
Software Development
17 Years Ago
by jaepi
…] error: name lookup of 'i' changed for new ISO 'for'
scoping
error: using obsolete binding at 'i' [/code] Strange.
Re: Help with error in using iterator in a for loop
Programming
Software Development
17 Years Ago
by Duoas
… you get away with a lot of stuff. Before local
scoping
was put in the standard, what do compilers do with…
Using Obsolete Binding Problem
Programming
Software Development
17 Years Ago
by silverwulffe
… "name lookup of 'x' changed for new ANSI 'for'
scoping
using obsolete binding at 'x'" Did I do something…
1
2
3
6
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC