<div dir="ltr">On 18 February 2013 07:18, Walter Bright <span dir="ltr"><<a href="mailto:newshound2@digitalmars.com" target="_blank">newshound2@digitalmars.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 2/17/2013 12:51 PM, Jacob Carlborg wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I just stripped out all D1 and Tango related code from Orange. D1/Tango is still<br>
supported in the d1 branch. Hopefully this will make it easier to integrate into<br>
Phobos.<br>
<br>
It also now supports UDA's for indicating a field/class/struct shouldn't be<br>
serialized:<br>
<br>
class Foo<br>
{<br>
     @nonSerialized int a;<br>
}<br>
<br>
@nonSerialized class Bar { }<br>
</blockquote>
<br></div>
Hmm, shouldn't it be the other way around - marking the ones to be serialized?<br></blockquote><div><br></div><div style>I think both are useful, but I would expect opt-in rather than opt out as Walter asserts. For instance:</div>
<div style><span style="color:rgb(80,0,80)"><br></span></div><div style><span style="color:rgb(80,0,80)">@serialise class Foo // everything in the class</span><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">{</span><br style="color:rgb(80,0,80)">
<span style="color:rgb(80,0,80)">     int a;</span></div><div style>     @noSerialise int cacheValue; // except this<br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">}</span><br></div><div style><span style="color:rgb(80,0,80)"><br>
</span></div></div></div></div>