[M3devel] text inefficiency? good mutable string type? arrays?

Tony Hosking hosking at cs.purdue.edu
Tue Feb 26 21:16:47 CET 2008


ARRAY OF CHAR/WIDECHAR?

These are available in the various Text implementations.  For exampe,  
Text8.T.contents.  One can freely mutate these at leisure and the  
higher-level text will appear to change!

On Feb 26, 2008, at 2:22 PM, Mika Nystrom wrote:

> Olaf Wagner writes:
>> Quoting Jay <jayk123 at hotmail.com>:
>>
>>> I know this area has been brewing under the surface a while.
>>> I'll bring it up. :)
>>>
>>> I assume texts are read only?
>>
>> Yes.
>>
>>> I know lots of systems have read only strings.
>>> There are pluses and minus to them. They can be single-instanced.
>>> Some systems with read only strings have another type, such as
>>> "StringBuilder" or "StringBuffer".
>>> So -- I don't have a specific question, but maybe a mutable string
>>> "class" aka "type" is needed?Not necessarily in the language but in
>>> m3core or libm3?
>>> Maybe it's already there?
>
> CharSeq.T?




More information about the M3devel mailing list