[fpc-pascal] Looking for JavaScript component on FPC

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Fri Apr 3 13:05:31 CEST 2015


On 2015-04-03 10:39, Michael Van Canneyt wrote:
> you just change one option -Fu/GUI/LCL to 2: -Fu/GUI -NLCL
> I don't see much added value in that.

Other possibly (more useful) usage would be reducing the generic unit
name clashes. eg: How common is the unit name constants.pas? Very
common. So when using various libraries that all could contain a unit
named constants.pas, using namespaces means we can easily get around the
unit name clash issue.

ps:
I've never used namespaces in any of my projects, but I sure can see a
use for it. Beyond the "flatten directory hierarchy" example I mentioned
earlier.

ps #2:
Unit namespace clashing is exactly why fpGUI uses the fpg_* unit name
format. Because my first attempt of FP* and fpg* clashed with units
included with FPC.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/



More information about the fpc-pascal mailing list