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 » U++ Library support » U++ Core » Value: no deep copy support?
Re: Value: no deep copy support? [message #29453 is a reply to message #29446] Thu, 21 October 2010 19:06 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
kohait00 wrote on Thu, 21 October 2010 02:47

thanks mirek, got to rethink the concept.
i'm a more or less a freshy in all that, programming idioms and tricks in c++. graduated not to a sowftware engeneer, but technical and hardware but happened to begin to work in software engeneering. where i need to teach my self a lot.
thanks upp speeds up all of that. thanks Smile

EDIT: just a question aside:
why is then ValueArray there, which is sort of a container? and why the possibility to 'hide' own custom data inside Value, using RawValue or RichValue..



Why not?

Quote:


isnt Value meant to be a ref count based reference to some



That is just implementation detail. In fact, I was thinking that certain types will be stored differently.

Quote:


abstract data (not only the intrinsic ones), and to even be able to edit it as presented in one of the Value tutorials, using const_cast?



Ops, where?

Surely, you can use const_cast brute force there, but that is very very bad idea. If this is in any example, it should be removed quickly.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PolyDeepCopyNew: MSC / GCC differ in behaviour
Next Topic: RichPickToValue PROPOSAL
Goto Forum:
  


Current Time: Tue Jun 17 09:09:57 CEST 2025

Total time taken to generate the page: 0.04220 seconds