Abdelrazak Younes wrote:
I don't really get why you need a signal. Why can't a
BufferView.message function not call a WorkArea.message function?
There's a one-to-one correspondence, no?
For now yes but I can very well imagine multiple WorkArea using the same
BufferView.
Use-case: a teacher wants to show how to write a LyX document. The
student just have to watch on their WorkArea what the teacher is doing.
Only one WorkArea could be read-write at a time. All other WorkAreas
would be watch only.
Sounds fun, doesn't it?
Sounds like pie in the sky ;-) Don't over-complicate things; you can
always switch to a signal when you've implemented your mulitple WorkAreas.
The signals make debug backtraces totally inpenetrable. That's a
real-world, right-now problem that we won't have if you use functions.
Also, signals are sloooooowwwww, as you're finding out elsewhere.
Angus