<div dir="ltr">Just at a glance, a few things strike me...<div><br><div style>Phobos doesn't typically use classes, seems to prefer flat functions. Are we happy with classes in this instance?</div></div><div style><div>
Use of caps in the filenames/functions is not very phobos like.</div><div><br></div></div><div style>Can I have a post-de-serialise callback to recalculate transient data?<br></div><div style><br></div><div style>Why register serialiser's, and structures that can be operated on? (I'm not a big fan of registrations of this sort personally, if they can be avoided)<br>
</div><div style><br></div><div style>Is there a mechanism to deal with pointers, or do you just serialise through the pointer? Some sort of reference system so objects pointing at the same object instance will deserialise pointing at the same object instance (or a new copy thereof)?</div>
<div style><br></div><div style>Is it fast? I see in your custom deserialise example, you deserialise members by string name... does it need to FIND those in the stream by name, or does it just use that to validate the sequence?</div>
<div style>I have a serialiser that serialises in realtime (60fps), a good fair few megabytes of data per frame... will orange handle this?</div><div style><br></div><div style>Documentation, what attributes are available? How to use them?</div>
<div><br></div><div style>You only seem to provide an XML backend. What about JSON? Binary (with endian awareness)?</div><div><br></div><div style>Writing an Archiver looks a lot more involved than I would have imagined. XmlArchive.d is huge, mostly just 'ditto'.</div>
<div style>Should unarchiveXXX() not rather be unarchive!(XXX)(), allowing to minimise most of those function definitions?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 25 March 2013 07:41, Andrej Mitrovic <span dir="ltr"><<a href="mailto:andrej.mitrovich@gmail.com" target="_blank">andrej.mitrovich@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 3/24/13, Jacob Carlborg <<a href="mailto:doob@me.com">doob@me.com</a>> wrote:<br>
> For usage examples, see the github wiki pages:<br>
> <a href="https://github.com/jacob-carlborg/orange/wiki/_pages" target="_blank">https://github.com/jacob-carlborg/orange/wiki/_pages</a><br>
<br>
</div>A small example actually writing the xml file to disk and the reading<br>
back from it would be beneficial.<br>
<br>
Btw the library doesn't build with the -w switch:<br>
<br>
orange\xml\PhobosXml.d(2536): Error: switch case fallthrough - use<br>
'goto case;' if intended<br>
</blockquote></div><br></div>