Re: scheme memory address

2019-04-10 Thread Gianmaria Lari
On Wed, 10 Apr 2019 at 00:44, Andrew Bernard wrote: > Hi Gianmaria, > > > > It’s time to stop and take stock here. > Thank you Andrew for your message with your suggestions (and also for the other one with the code). Give me some time to go through it. I sincerely appreciate your help. Best reg

RE: scheme memory address

2019-04-09 Thread Andrew Bernard
Hi Gianmaria, Your requirement is to have a numbered list, similar to that in outlines. Basically what you want is a counter, and this can be implemented in Lisp like languages with a closure. A closure results from the fact that in Scheme a function records its environment, and this include

RE: scheme memory address

2019-04-09 Thread Andrew Bernard
Hi Gianmaria, It’s time to stop and take stock here. It’s clear you have some background in programming, but it is even more clear that you have not studied Lisp and Scheme, except in a passing manner. The Lisp family of languages is fundamentally different from languages like C. It takes a

Re: scheme memory address

2019-04-09 Thread David Kastrup
Carl Sorensen writes: > From: Gianmaria Lari > Date: Tuesday, April 9, 2019 at 8:17 AM > To: David Kastrup > Cc: lilypond-user > Subject: Re: scheme memory address > > I wanted to print the address of the variable x and then the address > of the parameter lst just to

Re: scheme memory address

2019-04-09 Thread Carl Sorensen
From: Gianmaria Lari Date: Tuesday, April 9, 2019 at 8:17 AM To: David Kastrup Cc: lilypond-user Subject: Re: scheme memory address I wanted to print the address of the variable x and then the address of the parameter lst just to show that x and lst have different address (so x is passed

Re: scheme memory address

2019-04-09 Thread Gianmaria Lari
On Tue, 9 Apr 2019 at 17:07, David Kastrup wrote: > Gianmaria Lari writes: > > > On Tue, 9 Apr 2019 at 11:13, David Kastrup wrote: > > > >> Gianmaria Lari writes: > >> > >> > On Tue, 9 Apr 2019 at 10:45, David Kastrup wrote: > >> > > >> >> Gianmaria Lari writes: > >> >> > >> >> > Suppose I w

Re: scheme memory address

2019-04-09 Thread David Kastrup
Gianmaria Lari writes: > On Tue, 9 Apr 2019 at 11:13, David Kastrup wrote: > >> Gianmaria Lari writes: >> >> > On Tue, 9 Apr 2019 at 10:45, David Kastrup wrote: >> > >> >> Gianmaria Lari writes: >> >> >> >> > Suppose I write >> >> > >> >> > >> >> > #(define x '(1 2 3)) >> >> > >> >> > >> >> >

Re: scheme memory address

2019-04-09 Thread Andrew Bernard
Hi Gianmaria, You are trying to use Scheme as though it were C. It isn't. I'd really like you to read the book I referred you to recently. If you really must learn about how pointers are used underneath everything in Scheme (and which you do not need to know about for programming, mostly), this t

Re: scheme memory address

2019-04-09 Thread Gianmaria Lari
On Tue, 9 Apr 2019 at 11:13, David Kastrup wrote: > Gianmaria Lari writes: > > > On Tue, 9 Apr 2019 at 10:45, David Kastrup wrote: > > > >> Gianmaria Lari writes: > >> > >> > Suppose I write > >> > > >> > > >> > #(define x '(1 2 3)) > >> > > >> > > >> > is there any way in scheme to print the

Re: scheme memory address

2019-04-09 Thread David Kastrup
Gianmaria Lari writes: > On Tue, 9 Apr 2019 at 10:45, David Kastrup wrote: > >> Gianmaria Lari 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

Re: scheme memory address

2019-04-09 Thread Gianmaria Lari
On Tue, 9 Apr 2019 at 10:45, David Kastrup wrote: > Gianmaria Lari 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 ne

Re: scheme memory address

2019-04-09 Thread David Kastrup
Gianmaria Lari 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 10) should usually

scheme memory address

2019-04-08 Thread Gianmaria Lari
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) Thank you, g. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gn