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 » 2020.2rc1
Re: 2020.2rc1 [message #55186 is a reply to message #55180] Fri, 16 October 2020 09:55 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Klugier wrote on Fri, 16 October 2020 00:30
The idea is that someday we become mainstream Smile Beside that we could introduce some mainstream things still offering our uniqueness. In such case I do not think this big change in the philosophy or simplicity. I still think that we should keep with the best standards and practices for C/C++ if applicable. So moving in some areas towards mainstream solution is not something that we should afraid of. This will give us broader horizons


If we become mainstream, maybe so will become "using namespace" Smile

Realistically, I agree with most things in "mainstream", but there are several dogmas that seem out of context. This is one of them...

Think about what you gain / loose by having / not having using namespace Upp in the header....

In practical terms, with using namespace, you can use U++ types without qualification at the risk of nameclash with either your own code or some other namespace that you have are "using". In the case of nameclash, you have to explicitly qualify namespace. Note that there also is no chance for error: nameclash is reported at compile time.

Without "using namespace", you have to qualify everything. Does not seem like a win option to me...

BTW, now thinking about it, I really dislike

namespace Upp {
#define LAYOUTFILE <Rajce/Rajce.lay>
#include <CtrlCore/lay.h>
} // namespace Upp


- that is something we should fix in the next release. This should work without Upp... I think the most correct fix is in the Layout designer - add namespace setting to .usc file and make layout designer to use it / insert into .lay....

Mirek

[Updated on: Fri, 16 October 2020 10:03]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: clang windows -FPIC not supported
Next Topic: 2020.2rc2
Goto Forum:
  


Current Time: Tue May 14 19:20:00 CEST 2024

Total time taken to generate the page: 0.02588 seconds