[Oberon] Text.Buffer usage.

Robert Ransom rransom.8774 at gmail.com
Fri Dec 16 21:26:56 CET 2016


On 12/16/16, peter at easthope.ca <peter at easthope.ca> wrote:
> In http://www.ethoberon.ethz.ch/ethoberon/defs/Texts.Def.html ,
> (* Open a new text buffer B. *)
> PROCEDURE OpenBuf (B: Buffer);
>
> Note 3. at the end of the page explains,
> "Buffers contains large sequences of objects (both character and
> non-character) and allow low-level temporary manipulation.
>   ...
> To prevent broadcasts being sent for potentially each character being
> written into a text, the text manipulation is first done in a buffer.
> Operations on buffers do not result in update messages being
> broadcasted.
>
> How is the manipulation of the buffer performed?  Append a character
> to a buffer for example.  There is no procedure
> WrtieBuf(b: Buffer; c: CHAR).

The buffer is wrapped in a Texts.Writer, and callers use Texts.Write
et al. to write to the latter.


More information about the Oberon mailing list