Monday, March 13, 2006

D'oh! for_each != transform

The bug I mentioned last week was a really stupid case of calling the wrong function to manipulate a container. The really stupid part of it was that I was previously calling the correct thing, but then changed it when I was moving some code around. Why I chose to explicitly retype the code, introducing an error, rather than just cutting and pasting, I do not know. My brain was pretty well gone at the time I did that. At least it didn't take me too terribly long to find the problem today.
Categories: ,

No comments: