Re: Local variables - quick question
From: Stefan Turalski \(stic\) (stefan.turalski_at_kruk-inkaso.com.pl)
Date: 02/27/04
- Next message: Marc Scheuner [MVP ADSI]: "Re: Struct Layout in C# to Delphi.Net"
- Previous message: v-jetan_at_online.microsoft.com: "RE: Loading an Assembly not in my current appdomain."
- In reply to: Jon Skeet [C# MVP]: "Re: Local variables - quick question"
- Next in thread: Jon Skeet [C# MVP]: "Re: Local variables - quick question"
- Reply: Jon Skeet [C# MVP]: "Re: Local variables - quick question"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 27 Feb 2004 07:31:36 +0100
Uzytkownik "Jon Skeet [C# MVP]" <skeet@pobox.com> napisal w wiadomosci
news:MPG.1aa7f63d48871bb098a266@msnews.microsoft.com...
> Stefan Turalski (stic) <stefan.turalski@kruk-inkaso.com.pl> wrote:
> > Thanks for your quick answer - all what I did was to rename this
variable.
> > btw. Is there a way to read ahead variable scope?
> What exactly do you mean by "read ahead variable scope"?
What should I do if I want to examine one of my variables if it is in its
scope or no ?
Debbuger could do it in some why ?
Variables declared localy as far as I know should be destroyed by GC after
their scope ends.. I'm I right ? (rather not, but I have no idea what the
answer is)
> > Or where msdn gives info
> > about scope of variables - I wasn't expecting that local for() - loop
have
> > scope over this loop scope ;-)
> Look at section 10.7 of the ECMA C# spec
> (http://www.jaggersoft.com/csharp_standard/10.7.htm)
- great link! thanks a lot
> or section 3.7 of the MS spec
> http://msdn.microsoft.com/library/default.asp?url=/library/en-
> us/csspec/html/vclrfcsharpspec_3_7.asp,
> aka http://tinyurl.com/394xc
- another good link (this one I have reed before writing on group - and then
I was wondering what:
"Scopes can be nested, and an inner scope may redeclare the meaning of a
name from an outer scope."
mean ? I asume that when I write another for() loop with the same int i
iterator I only redeclare it ?
What is the dipper (memory?) backgroud of this 'redeclare' ?
Sorry for all this questions but I need to know !!!
And once again, thanks for your help...
-- best regards Stic
- Next message: Marc Scheuner [MVP ADSI]: "Re: Struct Layout in C# to Delphi.Net"
- Previous message: v-jetan_at_online.microsoft.com: "RE: Loading an Assembly not in my current appdomain."
- In reply to: Jon Skeet [C# MVP]: "Re: Local variables - quick question"
- Next in thread: Jon Skeet [C# MVP]: "Re: Local variables - quick question"
- Reply: Jon Skeet [C# MVP]: "Re: Local variables - quick question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|