Re: remove! oddity
- From: "matteo d'addio 81" <m_a_t_e_81@xxxxxxxx>
- Date: 21 Feb 2006 02:38:14 -0800
netytan ha scritto:
Ok scratch the pass-by-value. It seems that it may well be
pass-by-reference but it's bound to the parameter.
This sort of explain why you can't/don't alter the first value -
well, why you don't alter it's cdr anyway. If you did the whole list
would disappear and thats obviously not what you want.
I can also see that it's not really a problem unless you try to use it
like you would in an imperative programming language; I haven't used
distractive functions as of yet so I think I treated them too much like
you would in imperative languages :(.
Any thoughts welcome still, I still don't really understand everything
to my satisfaction.
I'll get it,
Mark.
I found this particular behaviour explaned in srfi 1. They're called
"linear update" procedures.
Go to srfi 1 for the details:
http://srfi.schemers.org/srfi-1/srfi-1.html
in the section called "linear update" procedures.
matteo
.
- Follow-Ups:
- Re: remove! oddity
- From: netytan
- Re: remove! oddity
- References:
- remove! oddity
- From: netytan
- Re: remove! oddity
- From: netytan
- remove! oddity
- Prev by Date: Re: case-sensitivity
- Next by Date: Re: case-sensitivity
- Previous by thread: Re: remove! oddity
- Next by thread: Re: remove! oddity
- Index(es):