From maintainers-request at octave dot org Mon Feb 20 17:15:01 2006 Subject: Re: How to break out of a computation? From: "Sebastien Loisel" To: "John W. Eaton" Cc: "octave maintainers mailing list" Date: Tue, 21 Feb 2006 00:13:21 +0100 ------=_Part_10315_14658113.1140477201841 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > > If the code in pager.cc is close to what you want, but doesn't quite > > do everything you need, then we can probably fix things so that it > > > as we've been discussing, this isn't possible in MinGW. The C++ way is to > add a virtual write() function to octave_pager_stream, whose default logi= c > is something like > Upon further consideration of pager.cc, I think what you're getting at is the diary functionality, and I notice now that any embedder will necessarel= y break that as it is right now. The most natural way of extending the code to allow for an embedder, in the style it's written currently, would be to allow for external_pager not to b= e an oprocstream, but some object with all virtual functions, which I could set from the embedder. (Basically, they'd be callbacks.) Well, you tell me. S=E9bastien Loisel ------=_Part_10315_14658113.1140477201841 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
If the code in pager.cc is close to what you want, but doesn't quite
do everything you need, then we can probably fix things so that it
<= /blockquote>
as we've been discussing, this isn't possible in Mi= nGW. The C++ way is to add a virtual write() function to octave_pager_strea= m, whose default logic is something like

Upon further consideration of pager.= cc, I think what you're getting at is the diary functionality, and I notice= now that any embedder will necessarely break that as it is right now.

The most natural way of extending the code to allow for an embedder= , in the style it's written currently, would be to allow for external_pager= not to be an oprocstream, but some object with all virtual functions, whic= h I could set from the embedder. (Basically, they'd be callbacks.)

Well, you tell me.

S=E9bastien Loisel

------=_Part_10315_14658113.1140477201841--