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

Jay jayk123 at hotmail.com
Tue Feb 26 21:35:56 CET 2008


Is that legal or is that subverting things?
It depends on the context?
Can the pointers be to read only memory in the code?
 
 - Jay



> From: hosking at cs.purdue.edu> To: mika at async.caltech.edu> Date: Tue, 26 Feb 2008 15:16:47 -0500> CC: m3devel at elegosoft.com> Subject: Re: [M3devel] text inefficiency? good mutable string type? arrays?> > 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?> 
_________________________________________________________________
Climb to the top of the charts! Play the word scramble challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080226/c9ecfcd8/attachment-0002.html>


More information about the M3devel mailing list