Re: remove! oddity




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

.