Home » U++ Library support » U++ Core » ValueArray behaviour / inconsistantcy / BUG?
Re: ValueArray behaviour / inconsistantcy / BUG? [message #29460 is a reply to message #29436] |
Thu, 21 October 2010 23:12   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
kohait00 wrote on Wed, 20 October 2010 04:45 |
now the question is, how is ValueArray supposed to be used:
is it supposed to be used as
1) Content of a RichValueRep? (Value.cpp:142: RichValue<ValueArray>::Register()
2) as a selfsustained Value interface/data container, just same as RawValue / RichValue?
as far as i got it to understand, ValueArray is kind of both. an extended Value implementation and meant to be in container data of a normal value, but offers the ValueArray::Data : Value::Void implementation, which is sort of Value domain.
now converting a ValueArray to a Value takes over the ValueArray::Data, serilizing it properly. deserializing it creates a RichValueRep<ValueArray>, which is inconsistent.
|
It was only a bug.
When using Value, you should not care about RichValueRep as long as you are not adapting another type to be Value compatible.
ValueArray is simply array of Values with O(1) copy, which is Value compatible. Nothing more, nothing less.
As far as that "ValueArray::Data" issue, it is simply optimization, which implements ValueArray without RichValueRep helper. The bug was that we were not careful enough and Serialization supposed that ValueArray Value compatibility IS done using RichValueRep.
[Updated on: Thu, 21 October 2010 23:13] Report message to a moderator
|
|
|
 |
|
ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Wed, 20 October 2010 09:33
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Wed, 20 October 2010 10:45
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Wed, 20 October 2010 16:00
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Thu, 21 October 2010 22:40
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Thu, 21 October 2010 23:08
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Thu, 21 October 2010 23:12
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Thu, 21 October 2010 23:32
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Fri, 22 October 2010 00:09
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Fri, 22 October 2010 07:30
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Fri, 22 October 2010 09:53
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Fri, 22 October 2010 10:12
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Fri, 22 October 2010 10:17
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Fri, 22 October 2010 11:01
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Fri, 22 October 2010 13:52
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Mon, 25 October 2010 13:59
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Wed, 27 October 2010 19:32
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Thu, 28 October 2010 07:45
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Thu, 28 October 2010 10:10
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Thu, 28 October 2010 18:20
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Fri, 29 October 2010 08:37
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Fri, 29 October 2010 12:13
|
Goto Forum:
Current Time: Thu Aug 28 06:38:50 CEST 2025
Total time taken to generate the page: 0.08834 seconds
|