On Thursday, 14 March 2013 at 02:03:56 UTC, Ellery Newcomer wrote:
On 03/13/2013 11:30 AM, D-ratiseur wrote:
uppon everything to bypass the garbage
collector.
In that case, I call foul.
FAddr.length = FAddr.length + 1;
types.d#L281
Wait, what? You're using classes everywhere and.. ohhhhhhh.
you're overriding new. Nifty. Don't know if that's been
deprecated or not, but I'm pretty sure Andrei hates it and
wants it to die.
The delete statement is deprecated in favor of object.destroy
or something.
For struct ULongRec, shouldn't some of your twiddly stuff be
wrapped in version(LittleEndian) ?
new is overriden in TUObject because the purpose of the library
is to bypass the garbage collector and to bypass the GC you have
to override new and delete.(at least according to the manual:
articles,mem managment).
And yes, classes are used everywhere. I've read in the D
guidlines that interdependent classes should be avoid (IIRC the
reason for this is to make the maintenance easyer)...but it's
just like that, by design. The classes hold some data and some
methods usefull for their descendants...don't they ?
About the ULongRec, yes maybe...
But I recognize that I've been a bit "overenthusiastic" in this
announce, I should have waited a few weeks...Anyway I'll finish
this lib, everything is here, the class structure is clear.