|
|
Orchid XP v7 <voi### [at] devnull> wrote:
> Warp wrote:
> > That didn't really answer the question of whether it is able to drop
> > the parts which are no longer used.
> Garbage collection.
> In Haskell, a "string" is a linked-list of characters. Let go of the
> pointer to the start of the list and all elements up to the first one
> you've still got a pointer to will be collected and freed.
Btw, what does it do if you jump to the beginning of the string after
it has been garbage-collected? (After all, from the programmer's point
of view it's one single string, so you should be able to read it from
whatever point you like, shouldn't you?)
--
- Warp
Post a reply to this message
|
|