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 » Community » U++ community news and announcements » .lay / .usc namespace
Re: .lay / .usc namespace [message #55338 is a reply to message #55337] Sat, 31 October 2020 20:28 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1099
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Mirek,

That's great news! I would like to ask will it work with chain namespace from C++17:
namespace MyApplication::HelperWidgets {
    // ...
}

or in the similar situation for previous standards:
namespace MyApplication { namespace HelperWidgets {

}
}


So, in .usc file following declaration should be valid:
namespace MyApplication::HelperWidgets;


I also saw following hack in the code:
String CurrentNamespace; // this is ugly hack, but better than rewrite everything

The whole file when the function is used is relatively simply, so why not just extract class and put current namespace as variable? Should be easy and we will have better/cleaner (easier to maintain) code in that place.

Klugier


U++ - one framework to rule them all.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: ide: Compare with the next file, break long lines in comparison
Next Topic: SSH package is upgraded to libssh2 v1.9.0
Goto Forum:
  


Current Time: Tue Jun 17 00:27:24 CEST 2025

Total time taken to generate the page: 0.03935 seconds