Removing STL and templates is fine. Actually the internal version of this system was originally written entirely in ANSI C89. I do have a very (1 year) old version which is still public. Perhaps people might find the uncanny similarity interesting (especially the adapted tutorial). The entire C project was meant to remain open-source but it became a bit butchered to work on an entirely different widget system.
https://github.com/osen/iffe/tree/main/src/iffe <-- Old codebase
Had I known there was a potential for inclusion with FLTK I would have brushed up on the coding conventions and stuck to them. But either way, if people have a play and think that they will still be interested, let me know and I can spend a bit of time making it more suitable for integration.
Thanks,
Karsten
On Friday, October 29, 2021 at 12:05:03 PM UTC pvr...@btinternet.com wrote:
From: Ian MacArthur Sent: 29 October 2021 11:28 To: fltk.general Subject: [fltk.general] Re: [Fl_Flow] A new layout manager for FLTK
On Friday, 29 October 2021 at 07:50:44 UTC+1 duncan wrote:
However, I notice that the code uses exceptions and templates, which might be a problem for
inclusion within the core of FLTK because the CMP currently prohibits their use, but there's
probably nothing to stop Fl_Flow being offered as part of an add-on system. FLTK++ perhaps?
As far as this aspect of it goes, I am less concerned about template code than about exceptions - template code is basically resolved at compile time, so doesn't have an impact on the runtime.
Exceptions are trickier because they have a runtime aspect to them, and require the linking in of support that fltk generally eschews in favour of being fast and light.
So, from my perspective, an updated CMP would probably permit template code (but perhaps suggest that it's use be minimized for backwards compatibility) but might still deprecate the use of exceptions...
As a matter of interest what is the issue with exceptions?
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.