> As an aside, is there an official reason to use int instead of bool? > I notice fltk prefers int. is_ in the function name is clear enough, > but bool is still better documentation. Oh, also why I suggested > as_group is because there's a common convention that is_ is for a > predicate, but that's not universal.
I think it is mainly history - kind of the same reason we don't use templates, or RTTI, or exceptions: Back in the day, none of those things worked consistently across platforms, and all tended to be dodgy and slow (though I doubt the bool type was ever afflicted by dodgy or slow...) -- 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
