> What are you implying? FLTK 3 has bugs? How very dare you :-P
.... No comment. ;-)
I can't tell if it has bugs or not - I can't get it to build! ;-)
(Sorry, just joking...)
> > > I see Ben says "They're portable (except perhaps to some
really obscure
> > > embedded systems)" - I guess he means me!
> >
> > I'd be surprised if most of these, nowadays, didn't support
exceptions.
>
> Hold on to your chairs and keyboards: Android does not support
exceptions! Yes, *that* Android that runs on more phones than Apple's
iOS!
>
Yup - though that's not one of my targets, the decision not to support
exceptions is one that many embedded systems make. I'd hazard that the
choice represented "best practice" and was probably correct at the time.
Whether we agree with it, or consider it the best choice in hindsight...
Well...
Elsewhere in this (interesting but increasingly OT thread) Evan laid out
the advantages of exception handling, but I'd just like to point out
that his example (seemed to me, anyway) implied two things that many
embedded platforms do not have:
- dynamic allocation of memory
- somewhere to report the failure to
A lot of my targets really have neither, memory is usually allocated at
compile time, there's generally no heap as such (though there is stack
space, which can get exhausted and so you need some means to recover
from stack overflow etc...) and the program *is* the system, so, well,
if it fails, who ya gonna call?
I don't *think* that model is even that unusual for small targets - just
not what you'd do on a desktop system, of course!
However - that's mostly tangential to whether fltk ought to use
exceptions internally these days.
I'm not in favour, but I'm not opposed to it, either.
I'm not convinced that it is "value adding" in the core library (since I
seldom use them myself so I don't see the benefit) but if the general
feeling is that it does add value, then I'm happy.
In other news: if Ben wants to do an Adroid NDK port, well, I say yes!
Cheers,
--
Ian
SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev