« Red shoes by the drugstore | Main | Undone by the text »

December 05, 2005


Good question. I have no idea. It's been a few years since I had to deal with C -- I've grown soft & weak.

Answer: yes. It seems one can write brief programs to test these things.

In retrospect, I think this is more or less exactly how Python implements its built-in objects at the C level.

It makes sense that it would allow you to access bp->anotherdatum. My guess, though, is that it is one of those "undefined" behaviours that always works out right (i.e., if there were a lot of memory usage, it might not work out well).

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)