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 » Core chat... (reference counted pointers etc.)
Re: Core chat... [message #12396 is a reply to message #12395] Sat, 27 October 2007 16:02 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
mdelfede wrote on Sat, 27 October 2007 09:21


Back to refcounted objects. What about if Ctrl would be an object built with PIMPL idiom and refcounted ? You then could write :
[code]



Sure, that is one possibility. But that would result in completely differnt library:)

IMO/IME, pimpl is nice for closed library (in terms of extensibility), but it is a pain in the ass if you want to be flexible.

E.g. consider something as simple as inheriting things Wink

All in all, you can circle around the issue as you want. But I believe that U++ paradigm is the most optimal Smile Minimum code to write, maximum flexibility, near to optimal performance.

That is not a bad tradeoff for pick_ IMO Wink

Mirek
Re: Core chat... [message #12397 is a reply to message #12396] Sat, 27 October 2007 16:28 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
luzr wrote on Sat, 27 October 2007 16:02


Sure, that is one possibility. But that would result in completely differnt library:)


of course... that's only a chat, we're not planning to rewrite UPP Smile

Quote:


IMO/IME, pimpl is nice for closed library (in terms of extensibility), but it is a pain in the ass if you want to be flexible.

E.g. consider something as simple as inheriting things Wink


Of course, inheritance is the biggest problem of pimpl... well, not difficult but boring, as you have to derive 2 classes in parallel.

Quote:


All in all, you can circle around the issue as you want. But I believe that U++ paradigm is the most optimal Smile Minimum code to write, maximum flexibility, near to optimal performance.

That is not a bad tradeoff for pick_ IMO Wink




ok, ok... I give up!!!

Ciao

Max
Previous Topic: ValueMap
Next Topic: Quick and dirty solution to .icpp problem...
Goto Forum:
  


Current Time: Mon Apr 29 16:56:49 CEST 2024

Total time taken to generate the page: 0.02915 seconds