|
|
Hello,
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.
[ OLD C VERSION ]
https://osen.github.io/flow.html <-- C-style tutorial
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? Regards Phil.
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/9151bf32-6f40-4842-b43a-bfa9d305acc2n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |