"Ben Sherman" <[EMAIL PROTECTED]> wrote
> Am I wrong in my memory? When I was a wee lad prior to 99 for
> sure),
> I thought I would initialize my loops with:
>
> for (int x=0; x <10; x++) {
You certainly could in C++ but I'm less sure about C.
You certainly couldn't do that in C prior to ANSI
Ben Sherman schreef:
> Am I wrong in my memory? When I was a wee lad prior to 99 for sure),
> I thought I would initialize my loops with:
>
> for (int x=0; x <10; x++) {
> }
If that was in C, it must have been a special feature of your compiler.
--
If I have been able to see further, it was on
Am I wrong in my memory? When I was a wee lad prior to 99 for sure),
I thought I would initialize my loops with:
for (int x=0; x <10; x++) {
}
I am rapidly veering off topic.
On 4/24/07, Alan Gauld <[EMAIL PROTECTED]> wrote:
> Correcting my own post!
>
> "Alan Gauld" <[EMAIL PROTECTED]> wrote
Correcting my own post!
"Alan Gauld" <[EMAIL PROTECTED]> wrote
> That's a very recent change to C/C++ (1999 apparently),
Actually only a recent change in C. Its always been true of C++.
But in C up until recently(*) you couldn't define a loop
variable in the loop it had to be outside:
int x;
> Ezra Taylor wrote:
>> How can we limit this functionality so that
>> python
>> behaves similar to other know languages.
There are many other languages that work like Python.
Including the original versions of C and C++...
And other languages that don't have explicit loop co
"ammar azif" <[EMAIL PROTECTED]> wrote
> Something in python disturbs me ,
>
> when i write a for loop, i am able to access the variable
> declared in that loop after the loop finishes which i am
> not able to do in languages like c/c++ or java.
That's a very recent change to C/C++ (1999 app
Ezra Taylor wrote:
> Hello Kent:
> How can we limit this functionality so that python
> behaves similar to other know languages. Maybe I should be asking what
> are the benifits of allow variables not being bound to a block of code.
Why is this a problem? Don't try to turn P
Sorry about that kent. I just realized I emailed you directly.
Ezra
On 4/24/07, Kent Johnson <[EMAIL PROTECTED]> wrote:
ammar azif wrote:
> Something in python disturbs me ,
>
> when i write a for loop,
>
> i am able to access the variable declared in that loop after the loop
> finishes which
ammar azif wrote:
> Something in python disturbs me ,
>
> when i write a for loop,
>
> i am able to access the variable declared in that loop after the loop
> finishes which i am not able to do in languages like c/c++ or java. Is
> it different in python?
Yes, it is different. In Python a bloc
On 4/24/07, ammar azif <[EMAIL PROTECTED]> wrote:
> i am able to access the variable declared in that loop after the loop
> finishes which i am not able to do in languages like c/c++ or java. Is it
> different in python?
I'm not sure what you mean with "different", but the loop-variable is
not de
Something in python disturbs me ,
when i write a for loop,
i am able to access the variable declared in that loop after the loop finishes
which i am not able to do in languages like c/c++ or java. Is it different in
python?
-
Ahhh...imagining that irresi
11 matches
Mail list logo