Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » How to manage UPP namespace
How to manage UPP namespace [message #43084] Sat, 03 May 2014 23:22 Go to previous message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
This is a problem on which I stumble regularly.

Some packages are inside UPP namespace, some have they're own namespace, some don't have any namespace at all and some have 'using namespace Upp;' in they're headers !!
This leads to name clashes and ambiguous problems when using some packages or when including external resource code.

I think their should be some recommendations on how to correctly manage this (if you wan't you're package to be usable by others of coarse ), like the following:

  • always put code inside namespace Upp ( at least for classes meant to be used by other packages )
  • Never put 'using namespace xxx;' inside headers

[Updated on: Sat, 03 May 2014 23:24]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: Helper function to help dealing with GUI thread related issues
Next Topic: CodeEditor syntax support refactored
Goto Forum:
  


Current Time: Sat Apr 27 19:11:48 CEST 2024

Total time taken to generate the page: 0.03871 seconds