Search

August 03, 2020
Learn »
...structs and classes that I want to serialize, and instead of writing tons and tons...
July 29, 2020
General »
...now and it works):

```
class Base {
    string serialize() {
        alias This = Base;
	return This.stringof; // just...
July 23, 2020
General »
...example
        };
    }

    final string serialize() {
        return _serialize(this);
    }

    private string function(Base) _serialize;
}

class Derived: Base...
July 23, 2020
General »
...module foo;

import std;

class Base {
     string serialize() {
         return typeid(this).toString; // just for example...
July 23, 2020
General »
...need the `virtual` keyword:

```
class Base {
     string serialize(this This)() {
           return This.stringof; // just for...
July 23, 2020
General »
...class Base {
     string serialize() {
           return Base.stringof;
     }
}

class Derived : Base {
     override string serialize() {
           return Derived...
July 21, 2020
Learn »
...my mistake was to try to directly serialize a SysTime as provided by the "getTimes...
July 21, 2020
Learn »
...serialize the stdTime [1], and set the time zone to whatever you want:

long serialize...
July 21, 2020
Learn »
Ah, sorry, I serialize exactly long value and use it as SysTime, for example:
```D...
July 21, 2020
Learn »
That is probably a bug. I serialize SysTime as long by means msgpack for exchanging...
1 2 3 4 5 6 7 8
Next ›   Last »