Orange - Free from D1/Tango

Manu turkeyman at gmail.com
Sun Feb 17 13:31:20 PST 2013


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
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130218/05f44dca/attachment-0001.html>


More information about the Digitalmars-d mailing list