On Mon, Oct 25, 2010 at 07:43:54PM +0200, Vincent van Ravesteijn wrote:
> > The only safe way to use them is when you control not only "sender" and
> > "receiver" but also all the code paths inbetween - i.e. basically only
> > within the same function or at least not from a deeply nested function.
> > And in that cases using a singular return value does the trick as well.
> >
> > Andre'
> >
> 
> I did something like this for Buffer::loadLyxFile(). Where would you
> advice to put the UI then ? I can now spit out a lot of error messages
> according to the number the functions comes up with. In Buffer ? In
> buffer_funcs ? In GuiView ?

Any direct user interaction in src/frontends/*, worker methods that can
run unattended, possibly bailing out on error in src/{!frontend}. If
errors are non-fatal they could be accumulated and returned or signalled
individually to the gui using a signaling mechanism that does _not_
require the existence of an "observer" (gui or lyxserver)

Andre'

Reply via email to