On 18 February 2013 07:18, Walter Bright <[email protected]> wrote:
> On 2/17/2013 12:51 PM, Jacob Carlborg wrote:
>
>> I just stripped out all D1 and Tango related code from Orange. D1/Tango
>> is still
>> supported in the d1 branch. Hopefully this will make it easier to
>> integrate into
>> Phobos.
>>
>> It also now supports UDA's for indicating a field/class/struct shouldn't
>> be
>> serialized:
>>
>> class Foo
>> {
>> @nonSerialized int a;
>> }
>>
>> @nonSerialized class Bar { }
>>
>
> Hmm, shouldn't it be the other way around - marking the ones to be
> serialized?
>
I think both are useful, but I would expect opt-in rather than opt out as
Walter asserts. For instance:
@serialise class Foo // everything in the class
{
int a;
@noSerialise int cacheValue; // except this
}