Hacker’s diary

Posted a larger and more structured article on the (somewhat surprising) capture rules for outer variables inside C# lambdas. http://www.ikriv.com/en/prog/info/dotnet/Lambdas.html

BTW, in earlier versions of Visual Studio (definitely VC++ 6, but maybe later) it was possible to add an arbitrary custom compilation step for a file, that worked just fine […]

Text Template Transformation Toolkit (T4) is a code generator built into Visual Studio 2008 and 2010. Yes, you have it now on your machine 🙂 It was proposed to me […]

I had an interesting bug the other day. I wrote a foreach loop along these lines: foreach (var entry in controlsByName) {     entry.Key.SomeEvent += (sender,args)=>{ProcessControlName(entry.Value);} } Looks innocent enough, […]

I am now using Internet Explorer 8 at work (corporate policy), and I noticed that sometimes I cannot find the tabs I open with “open link in new tab”. Firefox […]

I’ve got a Ruby book “The Ruby Programming Language” by Flanagan and Matsumoto (or should I say the Ruby book?) as a New Year present. I am only starting the […]