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

December 05, 2005

Comments

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).

The comments to this entry are closed.