May 19th, 2007

I'm not a beginner...

I just make mistakes like one.

Collapse )

(I know some of you are nodding knowingly right about now.) At this point, you ought to be able to call changeObject($example_object); and it should tell you something like

bar was changed to quux
foo was changed to baz

, because that's what you changed them to. Right?

Wrong! Can you spot the mistake? If it takes you less than an hour, you're doing better than I did:

Collapse )

This problem stumped me for way too long today. I just couldn't figure out how the change could be happening and not be getting logged. The real code was more involved than this, but not by much.

On the plus side, I think I finally and suddenly understand pointers. I wish this could've happened, oh, four years ago, but I'll take what I can get.

Hi ho.

Now I think I will finish my coffee and go rumble. Yay!