Re: where are the values of CAR and CDR stored?

2010-08-25 Thread Edwin Eyan Moragas
Hi Alex,


 As you observed, a cell is defined as a structure of two pointers. This
 is just to keep the C compiler happy. In truth, the CAR and the CDR
 contain either a pointer to another cell, or a plain binary value.

this is what i was after. thank you.

cheers,

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


Re: where are the values of CAR and CDR stored?

2010-08-24 Thread santiago ottonello
I guess the actual data is in car

i.e.

hi

|h| *|-|i|*|-NIL

But just a guess :-)


2010/8/24 Edwin Eyan Moragas e...@yndy.org

 Hi list,

 looking at pico.h i see the definition of the cell:

 typedef struct cell {// PicoLisp primary data type
   struct cell *car;
   struct cell *cdr;
 } cell, *any;


 these are pointers to... where? this would answer questions like:
 where is the actual symbol (or internal string representation of it)
 stored?

 i can dig deeper in the source but where to start?

 cheers,

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



Re: where are the values of CAR and CDR stored?

2010-08-24 Thread Edwin Eyan Moragas
Hi Santiago,

thank you for this.

i should have been clearer in my question. how is, say, a symbol,
stored using cells?.

On Wed, Aug 25, 2010 at 11:06 AM, santiago ottonello sano...@gmail.com wr=
ote:
 I guess the actual data is in car

 i.e.

 hi

 |h| *|-|i|*|-NIL

 But just a guess :-)

you've hit it right in the head. assuming your answer is correct, the
i guess i get it.

:-)



 2010/8/24 Edwin Eyan Moragas e...@yndy.org

 Hi list,

 looking at pico.h i see the definition of the cell:

 typedef struct cell { =A0 =A0 =A0 =A0 =A0 =A0// PicoLisp primary data ty=
pe
 =A0 struct cell *car;
 =A0 struct cell *cdr;
 } cell, *any;


 these are pointers to... where? this would answer questions like:
 where is the actual symbol (or internal string representation of it)
 stored?

 i can dig deeper in the source but where to start?

 cheers,

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


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


Re: where are the values of CAR and CDR stored?

2010-08-24 Thread Mansur Mamkin

Hi all!

Look at http://www.software-lab.de/doc/ref.html#vm


Hi Santiago,

thank you for this.

i should have been clearer in my question. how is, say, a symbol,
stored using cells?.


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


Re: where are the values of CAR and CDR stored?

2010-08-24 Thread Edwin Eyan Moragas
Hi Mansur,

On Wed, Aug 25, 2010 at 12:27 PM, Mansur Mamkin mmam...@mail.ru wrote:
 Hi all!

 Look at http://www.software-lab.de/doc/ref.html#vm

yes. i have read thru it and several times over. thank you.

what i need is confirmation of my understanding.

so i guess this mean that symbols are stored like picolisp ints? CAR
holding a digit (in the case of symbols, a single character) and the
CDR pointing to the next cell, which holds a digit in its CAR, and so
on?


 Hi Santiago,

 thank you for this.

 i should have been clearer in my question. how is, say, a symbol,
 stored using cells?.

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

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