Author |
Message |
Topic: Custom load/save of classes with inheritance |
aarti_pl
Replies: 5
Views: 52391
|
Forum: Doost Posted: Tue Jul 01, 2008 1:54 pm Subject: Custom load/save of classes with inheritance |
I mean situation like below:
class SuperType {
TransparentClass tc;
this() {
tc = new TransparentClass;
}
}
In above case constructor works completel ... |
Topic: Custom load/save of classes with inheritance |
aarti_pl
Replies: 5
Views: 52391
|
Forum: Doost Posted: Mon Jun 30, 2008 4:38 pm Subject: Custom load/save of classes with inheritance |
Hmm. Normally the value should always be null. It is only declared in load() function and instantiated later. But I can imagine that the class which contains TransparentClass can initialize Transparen ... |
Topic: Inheritance -- array of base classes |
aarti_pl
Replies: 1
Views: 12951
|
Forum: Doost Posted: Mon Jun 30, 2008 2:38 pm Subject: Inheritance -- array of base classes |
This case is a bit more tricky. I don't have solution, but there seems to be two ways of solving this problem:
1. Registering classes like in
http://www.dsource.org/projects/serialization/browser/t ... |
Topic: Custom load/save of classes with inheritance |
aarti_pl
Replies: 5
Views: 52391
|
Forum: Doost Posted: Mon Jun 30, 2008 1:27 pm Subject: Custom load/save of classes with inheritance |
Why not to use:
auto bvalue = cast(Base)value;
check(archive.traverse(bvalue));
instead of:
if (auto peek = archive.typeDescription!(Base)) {
au ... |
Topic: Binary serialization - the 64 bit question |
aarti_pl
Replies: 3
Views: 14686
|
Forum: Doost Posted: Thu Jun 26, 2008 6:02 pm Subject: Binary serialization - the 64 bit question |
On 8 bits there should be enough place to put length of number (4bits) and also some simple type information (other 4 bits). I mean info about simple types + other in case of e.g. size_t. It should be ... |
Topic: Binary serialization - the 64 bit question |
aarti_pl
Replies: 3
Views: 14686
|
Forum: Doost Posted: Thu Jun 26, 2008 5:45 pm Subject: Binary serialization - the 64 bit question |
Well, now I see that it is just a variation on different 'real' size on different platform.
There is no problem with types as arrays e.g. strings because the real length of array is always written ... |
Topic: Binary serializer? |
aarti_pl
Replies: 11
Views: 25819
|
Forum: Doost Posted: Thu Jun 26, 2008 5:20 pm Subject: Binary serializer? |
I also think that this is best solution for now... |
Topic: Binary serializer? |
aarti_pl
Replies: 11
Views: 25819
|
Forum: Doost Posted: Thu Jun 26, 2008 3:09 pm Subject: Binary serializer? |
Nice!
I will announce changes, after adding some more functionality to library. It won't be missed. |
Topic: Serializer examples |
aarti_pl
Replies: 5
Views: 17569
|
Forum: Doost Posted: Thu Jun 26, 2008 2:34 pm Subject: Serializer examples |
Yes, that's ok for me. Just add a short comment that it is workaround for dsss/bud. And bug number for reference. Thanks! |
Topic: Binary serializer? |
aarti_pl
Replies: 11
Views: 25819
|
Forum: Doost Posted: Wed Jun 25, 2008 6:38 am Subject: Binary serializer? |
Ok. Partial checks might be indeed good for big binary files. I think that they should be added to all complex types: arrays, associative arrays, classes, structs etc. It will be good compromise betwe ... |
Topic: Binary serializer? |
aarti_pl
Replies: 11
Views: 25819
|
Forum: Doost Posted: Wed Jun 25, 2008 4:51 am Subject: Binary serializer? |
Well, good question.
I was thinking about goal of such a "security" extension;
Obvious drawbacks of adding additional marks:
- overhead on serialized data size (proper solution shoul ... |
Topic: JSON indentation |
aarti_pl
Replies: 2
Views: 12296
|
Forum: Doost Posted: Tue Jun 24, 2008 4:20 pm Subject: JSON indentation |
It's difficult to say how much work it will take. Probably not so much, but I can not give any timing, when I will be able to implement this. |
Topic: Module names in doost.util.serializer.archive are wrong |
aarti_pl
Replies: 2
Views: 12297
|
Forum: Doost Posted: Tue Jun 24, 2008 4:15 pm Subject: Module names in doost.util.serializer.archive are wrong |
Module declarations are fixed now in trunk.
----
Now, you have also rights to commit to svn repository. Welcome
I appreciate that you want to spend a bit of your time to improve doost. I ... |
Topic: Newlines |
aarti_pl
Replies: 5
Views: 16303
|
Forum: Doost Posted: Tue Jun 24, 2008 3:41 pm Subject: Newlines |
Yes but, perl script replaced also line ending in internal svn files. So comparing original and new file gave no differences But svn commit definitely worked.
After commit I removed whole trunk ... |
Topic: Compile-time debug messages in Value.d |
aarti_pl
Replies: 3
Views: 13095
|
Forum: Doost Posted: Tue Jun 24, 2008 3:36 pm Subject: Compile-time debug messages in Value.d |
You are welcome! |
|