September 23, 2003

"This isn't an argument, this is abuse!"

I am, once again, reminded of the utter, almost ineffable, crapulence that is C's variable length argument list handling. The tacked-on, hackish way this is handled is always just phenomenally annoying when I have to deal with it.

I understand why, though honestly since it's pissing me off right now, I don't care. I'm in the middle of generating ncurses wrappers for Parrot, which itself isn't a big deal. The NCI interface Parrot has means no C code is required, just some runtime setup. No biggie. Except... there are some vararg functions in the interface. Building a proper vararg list is horribly annoying in C, and I don't even want to attempt it in native assembly, though it's probably easier there.

Varargs. Foo. Just goes to show that understanding the reason for a choice doesn't make it any less annoying when you run into the ramifications.

Posted by Dan at September 23, 2003 01:40 PM | TrackBack (0)
Comments