Re: Newbie - stuck - need a small push on higher order procedures
- From: Pascal Bourguignon <pjb@xxxxxxxxxxxxxxxxx>
- Date: Wed, 02 May 2007 15:38:56 +0200
"Mike" <mcu87992@xxxxxxxxxxxxxx> writes:
BTW - While I can use 'let' in coding (but possibly not the right way :),
the requirement didn't allow me to use it. I prefer local variables
(personal choice) but once I stopped being distracted by the use of 'first
'rest I was able to do this easily. I don't know what happens to the
objects ('first and 'rest) in terms of memory use - don't know how to
release them or destroy them. I'd expect Scheme does this house-keeping
automatically. I expect Scheme does have destructors - just not up to that
part in the reference materials :).
Yes, there's a garbage collector. Any lisp object that is not refered
anymore will be automatically deleted and its space reclaimed.
But there is no destructor function automatically called when this occurs.
You have to explicitely call destructors (to free external resources)
before losing references to your objects.
--
__Pascal Bourguignon__ http://www.informatimago.com/
"Specifications are for the weak and timid!"
.
- Follow-Ups:
- References:
- Newbie - stuck - need a small push on higher order procedures
- From: Mike
- Re: Newbie - stuck - need a small push on higher order procedures
- From: Jussi Piitulainen
- Re: Newbie - stuck - need a small push on higher order procedures
- From: Mike
- Newbie - stuck - need a small push on higher order procedures
- Prev by Date: Re: how to return absolutely "nothing"?
- Next by Date: Re: how to return absolutely "nothing"?
- Previous by thread: Re: Newbie - stuck - need a small push on higher order procedures
- Next by thread: Re: Newbie - stuck - need a small push on higher order procedures
- Index(es):
Relevant Pages
|