[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scheme memory address
From: |
David Kastrup |
Subject: |
Re: scheme memory address |
Date: |
Tue, 09 Apr 2019 11:13:06 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Gianmaria Lari <address@hidden> writes:
> On Tue, 9 Apr 2019 at 10:45, David Kastrup <address@hidden> wrote:
>
>> Gianmaria Lari <address@hidden> writes:
>>
>> > Suppose I write
>> >
>> >
>> > #(define x '(1 2 3))
>> >
>> >
>> > is there any way in scheme to print the memory address where x is
>> pointing
>> > to? (where is allocated the first element of the list)
>>
>> What do you need it for? If it is for identification, (hashq x
>> 1000000000) should usually do a reasonably good job.
>>
>
> I tried, it looks working. (Yes, it's for identification)
>
> And is there any way to print the memory address of x? (If I remember
> correctly was something like &x in c++).
object-address maybe. But it's not like you can use it for anything.
--
David Kastrup
- scheme memory address, Gianmaria Lari, 2019/04/09
- Re: scheme memory address, David Kastrup, 2019/04/09
- Re: scheme memory address, Gianmaria Lari, 2019/04/09
- Re: scheme memory address,
David Kastrup <=
- Re: scheme memory address, Gianmaria Lari, 2019/04/09
- Re: scheme memory address, Andrew Bernard, 2019/04/09
- Re: scheme memory address, David Kastrup, 2019/04/09
- Re: scheme memory address, Gianmaria Lari, 2019/04/09
- RE: scheme memory address, Andrew Bernard, 2019/04/09
- Re: scheme memory address, Gianmaria Lari, 2019/04/10
- Re: scheme memory address, Carl Sorensen, 2019/04/09
- Re: scheme memory address, David Kastrup, 2019/04/09
RE: scheme memory address, Andrew Bernard, 2019/04/09