View question

From: Wijck, Bart van <"Wijck,>
Date: Tue, 8 Jan 2002 15:48:03 +0100

BB's

This is a beginners question. The following seems somewhat strange to me:


MODULE BtryView;

IMPORT Ports, Views, TextModels, TextMappers, TextViews;


PROCEDURE Display*; (* <commander here>BtryView.Display *)
VAR
        t: TextModels.Model; f: TextMappers.Formatter; v: TextViews.View;

BEGIN
        t := TextModels.dir.New();
        f.ConnectTo(t);

        f.WriteString('RECORD 1'); f.WriteLn;
        v := TextViews.dir.New(t);
        Views.OpenView(v);

        f.WriteString('RECORD 2'); f.WriteLn;

END Display;

END BtryView.

When executing this program both records (1 and 2) are displayed in the
window. I expected it would only display the first as I'd created the view
and displayed it before I had even written record 2 to the text. Is it
correct to say that only the final state of the text is always displayed,
and no intermediate ones? And in order to create intermediate views
(snapshots) I presume I have to clear the text model every time (and what
about the view?).

Any enlightenment?

> Bart van Wijck
>
>
--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy
Received on Tue Jan 08 2002 - 14:48:03 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:46 UTC