Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

sexp

Name: Anonymous 2015-03-13 3:34

Is this a sane representation for s-expressions?

struct O
{
union {
Cell *o;
char *a;
};
int type;
};

struct Cell
{
O car, cdr;
};

Name: Anonymous 2015-03-13 4:53

>>2
You mean
struct O
{
union {
Cell *o;
void *a;
};
enum type t;
};

?
You're right of course. It was just quick and easy to make all atoms strings.

My main concern was whether it was reasonable to divide O and Cell like that.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List