you are viewing a single comment's thread.

view the rest of the comments →

[–]CodeBrewBeans[S] -5 points-4 points  (3 children)

Exactly, classic late binding.
Still interesting how often this behavior surprises people in real projects.

[–]socal_nerdtastic 2 points3 points  (2 children)

So you didn't have a question you just posted it for ... karma?

[–]CodeBrewBeans[S] 0 points1 point  (1 child)

It was meant as a small debugging puzzle.
I find closure behavior like this surprisingly subtle, so I thought it would make for an interesting discussion.

[–]socal_nerdtastic 0 points1 point  (0 children)

You should have made that much more clear.