> I don't really understand why foo has to be static to compile. > But this is really nice now :-). > > -- Bienlein A nested function has a context pointer to its outer scope, like a delegate. static makes it an ordinary function.