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 » rvalue vs Pick
rvalue vs Pick [message #15631] Thu, 01 May 2008 22:01 Go to next message
captainc is currently offline  captainc
Messages: 278
Registered: December 2006
Location: New Jersey, USA
Experienced Member
I've been watching/reading a little bit about C++0x... what is the difference between Pick semantics and rvalue based "move semantics"?
Re: rvalue vs Pick [message #15637 is a reply to message #15631] Thu, 01 May 2008 23:11 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
captainc wrote on Thu, 01 May 2008 16:01

I've been watching/reading a little bit about C++0x... what is the difference between Pick semantics and rvalue based "move semantics"?


Actually, it is VERY close Smile To the degree that I was hoping we will adopt rvalue && in U++.

The only problem is that (AFAIK) new C++ standard does not define composition rules. That means you would be forced to implement pick (or move) each time want it, while U++'s "dirty method" makes compiler to do this for you.

Also, small but important difference is IMHO emphasis on making picked object operations illegal. I believe "move semantics" just puts the source into empty state, that would be hell to maintain.

And then, of course, pick in U++ is implicit for many classes, not just optimization...

Mirek
Previous Topic: "better" version of Iscale functions
Next Topic: An idea for heap-checking stuffs
Goto Forum:
  


Current Time: Sun Apr 28 22:17:06 CEST 2024

Total time taken to generate the page: 0.04110 seconds