Bobbing for Kernels

See Bob. See Bob bob. Bob, Bob, bob!

Posts Tagged ‘macros’

Variadic functions in C: a new idiom?

Posted by kernelbob on April 5, 2010

For a long time, C has let you write functions that take a variable number of arguments.  But C leaves it up to each variadic function to figure out how many arguments it’s been passed, and up to each caller to pass the right arguments.

Here’s a cute hack to make variadic functions easier to write and a little harder to call incorrectly.

Read the rest of this entry »

Posted in C | Tagged: , , , | 5 Comments »

Scheme status

Posted by kernelbob on October 15, 2009

I’ve written here before about my efforts to write a Scheme interpreter from scratch.  The last update was in May, but I’m still working on it.  I’ve made 60 git commits since then.  The major thing I’m trying to do is implement macros, but I’m having a hard time of it.  No matter.  When they’re done, I’ll understand macros thoroughly.

Read the rest of this entry »

Posted in languages | Tagged: , , , , , , , | 3 Comments »