Wed Jan 21 17:14:43 CET 2009

datastructures in C

In lisp, a composite datastructure is always a bunch of pointers to
other data structures.  In C, some data might be "inlined".  This
inlining is done behind the scenes in Lisp (i.e. tagged ints), while
in C you have:




And it's always _your_ responsability to know which of both it is.

Is it possible to do this automatically, but still retain manual
inlining at the definition site? I.e. to write something like
struct=>field, and have the compiler expand it to struct->field or
struct.field (analogous to Macros in Staapl)?