Hi Kashyap,
> A follow up question - please excuse me if I am misreading here.
> As per the doc, the third bit indicates sym - independent of the
> architecture. So isSym should just have 4 in its logic - No?
Unfortunately the diagram in miniPicoLisp/doc/structures is not exact in this
regard. On a 64-bit architecture we get WORD = 8, SO isSym(x) is (num(x) & 8).
It is essential in PicoLisp that the pointer to a symbol always point to its
value cell
sym sym
| |
V V
+-----+-----+ +-----+-----+
| | | val | | txt | val |
+--+--+-----+ +-----+-----+
| tail
V
...
so that fetching the value with e.g. (val Sym) or (car Sym) is a simple
indirection.
☺/ A!ex
--
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe