KBD

Keith Devens .com

Saturday, August 30, 2008 Flag waving
The direct pursuit of happiness is a recipe for an unhappy life. – Donald Campbell
← json-taglib (JSON in JSP)Some druid tanking links →

Daily link icon Thursday, March 8, 2007

C# Frequently Asked Questions : Why can't I use the same variable as an inner loop does?

C# Frequently Asked Questions : Why can't I use the same variable as an inner loop does?. Language designers, please don't try to protect me from something like this. It's annoying.

But for fun, check out the possibly contradictory compile errors in code like:

public static void Main(string[] args){
   for(int y=0; y<100; y++){}
   Console.Write(y);
   int y = 0;
}

y doesn't exist but yet can't be created.

← json-taglib (JSON in JSP)Some druid tanking links →

Comments XML gif


Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

August 2008
SunMonTueWedThuFriSat
 12
3456789
10111213141516
17181920212223
24252627282930
31 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 2 posts

Recent comments XML

new⇒Johnny Walker Blue Label

Wow, thanks for the scotch review​:D

Lagavulin and Laphroaig are​some of...

Keith: Aug 29, 3:35pm

Girls, please don't get breast implants

Wow, After all this time, the​comments on this page continue to​grow. It wa...

Ajeet: Aug 25, 2:36am

Generated in about 0.138s.

(Used 8 db queries)

mobile phone