[Gd-hackers] string-extensions library
Bruce Hoult
bruce.hoult at gmail.com
Mon Jul 17 10:02:02 CEST 2006
On 7/17/06, Dean Powell <powelldean at gmail.com> wrote:
> Hi, All:
>
> I've been digging through the documentation attached to the web site and
> have started poking around with some actual code. A couple of questions
> have come to mind:
>
> 1) I can't find any reference to a substring() function. Have I just missed
> that, or does dylan currently lack such a function?
Same as any other sequence: copy-sequence
http://www.opendylan.org/books/drm/Collection_Operations#HEADING102-454
> 2) <string> looks like it should be immutable. Is <byte-string> the mutable
> version of a string? If so, shouldn't it instead be called a
> <stretchy-string> to follow the naming standards of other resizeable
> collection objects?
it's not immutable, but it's not stretchy either.
<string> is a superclass. <byte-string> and <unicode-string> are
subclasses that hold different sized characters.
http://www.opendylan.org/books/drm/Collection_Classes#HEADING93-2560
> Thanks in advance for any input to the "newbie" questions.
No problem. All newbie quesitons are very welcome! Feel free to ask
anything either here or else on the channel. I just noticed you on
the channel 18 minutes after you arrived, but unfortunately 7 minutes
after you left. People are usually around, but may not notice for a
while, so it's best to stay logged in while waiting if you can.
Regards,
Bruce
More information about the hackers
mailing list