On Wed, 1 Sep 2010, MacArthur, Ian (SELEX GALILEO, UK) wrote:

>>> I note that you have used std::vector to hold the animation
>>> frames...

>> Of course, if there's a better way to do this which gives
>> better cross-platform compatibility I'd gladly hear about
>> it- no harm in making things better!

> I wouldn't say better...
> Where the fltk core lib does this, it tends to be implemented
> "by hand" as linked lists or by malloc/realloc of arrays
> so that it only depends on simple "C" techniques that will
> be portable. This was done in the early days when the support
> for the std:: stuff was very inconsistent across platforms,
> and especially in small embedded ones...

Given the circumstances at the time, the approach is/was
definitely sensible, especially also considering that some
of the STL has a reputation of being slowish.
Still, although I fondly recall my assembly days, I'd
rather avoid implementing yet another linked list if
there's a class for that.

There's something about working low-level though. All these
young whippersnappers have been too far away from the hardware
from the start ;)

Best,
Marc

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to