|
|
|
|
|
by kazinator
2776 days ago
|
|
Sure. Now to implement consp, all you need is a global list which tracks all lambdas that came from the cons function; if the argument object is eq to anything on that list, then it is a cons! We also now need another primitive: weak pointers. We don't want our global list to prevent otherwise unreferenced cells from being reclaimed. typecase is going to be fun to develop and optimize, with everything being a lambda. |
|