|
|
Darren New <dne### [at] sanrrcom> wrote:
> My guess is that internally it works the same way you'd do it from C:
> you read a buffer, walk thru the buffer, and then discard the buffer.
> There's no reason it can't work that way, just because it *looks* like a
> list of characters at the program level, any more than getchar() really
> reads one character at a time.
If a string is really internally a list of smaller strings, wouldn't GC
become more difficult because you can actually have "references" pointing
to the middle of such strings and not their base?
I must admit, though, that I don't know how GC is implemented.
--
- Warp
Post a reply to this message
|
|