Eric Gunnerson - How much magic should your compiler have?
- Posted: May 10, 2004 at 3:20 PM
- 13,568 Views
- 6 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
These interviews were done a few weeks back. Sorry about that.
Actually, the question came up because the first time I read about anonymous methods, I was under the impression that the C# team was adding some form of closure to the C# language. After doing a little reasearch, i found out that anonymous methods weren't actually closures at all, but instead just a shortcut notation which the compiler expands. Unfortunately, i can't find the article that showed the compiler expansion right now. If I find it I'll post it. Basically, they create a new class which is designed to hold both the delegate and the locally scoped state of the variables that it uses. Instances of this class are used for delegate assignment.
The concept is not related except tangentially to Dispose or Garbage Collection.
I wanted to bring this point up to Eric while I was interviewing him, but, as you might all suspect, I get a little nervous in front of the camera, so it didn't come out quite as elegantly as I would have liked. As I bumbled my way through it, he made the exact point that I was looking for, Eric rules. My apologies for not speaking up, we'll have mic's on the interviewers soon.
-Bryn
"To a man with a hammer, everything looks like a nail."
Mark Twain
Remove this comment
Remove this thread
close