AW: [ooc-compiler] Proposal for an Email-Module; RFC
Brought to you by:
mva
|
From: <tim...@ma...> - 2001-05-16 14:08:33
|
Hallo!
> Btw, Stewart and I are mulling splitting the current ADT:String into
> ADT:String (immutable) and ADT:StringBuffer (mutable) -- see my
> attached answer to Stewart. Does anyone like to comment on this?
This is similar to Java.
It advantages are (as told) better usage of memory when sharing =
strings.
This will be even better, if you do things like copy on demand, when =
you
assign a String to a StringBuffer. While not always apropiate (higher
memory usage for single object) it is certainly a valuable addition.
Two notes:
The Oberon implemenatation may be a little bit more clupsy. Please use
LONGINT for all nummercial parameters (position, length) and not
INTEGER as Strings does.
--=20
Gru=DF...=20
Tim.
|