Orange - Free from D1/Tango

js.mdnq js_adddot+mdng at gmail.com
Wed Feb 20 05:08:16 PST 2013


On Sunday, 17 February 2013 at 21:31:31 UTC, Manu wrote:
> On 18 February 2013 07:18, Walter Bright 
> <newshound2 at digitalmars.com> 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
> }

yes, I think this is most useful, and:

@noSerialise class Foo // nothing in the class
{
      int a;
      @Serialise int cacheValue; // except this
}



More information about the Digitalmars-d mailing list