Re: where is the tail?

2010-09-15 Thread Alexander Burger
Hi Edwin,

> where is the 'tail' in light of what's given? is it in the 'car' or
> 'cdr'? the ASCII art in http://www.software-lab.de/doc/ref.html#cell
> is a bit vague.

A better place is "doc/ref.html#symbol". Scrolling down a little, there
is an ASCII art of a property list.

So the tail of a symbol is actually the CAR part of that cell (the
symbol's value is in the CDR part (denoted as VAL in the diagrams)).

In both cases, the CAR in case of a cell, and the VAL in case of a cell
are directly pointed to by the tagged pointer, so accessing the CAR or
VAL is a single pointer-dereference.

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe


where is the tail?

2010-09-15 Thread Edwin Eyan Moragas
Hi list,

reading thru the reference:

"A property is a key-value-pair, represented as a cell in the symbol's tail."

looking at the definition of a cell (from pico.h):

typedef struct cell {
   struct cell *car;
   struct cell *cdr;
} cell, *any;

where is the 'tail' in light of what's given? is it in the 'car' or
'cdr'? the ASCII art in http://www.software-lab.de/doc/ref.html#cell
is a bit vague.

best,

/e
-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe