March 14, 2022 General » Re: Dynamic templated virtuals - I still often want them | |||
|---|---|---|---|
| |||
...serialize() {
return _stringof;
}
}
class Derived : Base {
}
void main() {
Base b = new Derived();
assert(b.serialize... | |||
October 19, 2021 General » Re: Accessing static data of functions | |||
|---|---|---|---|
| |||
...an option a virtual machine should be able to serialize everything or at least RAM. | |||
October 19, 2021 General » Re: Accessing static data of functions | |||
|---|---|---|---|
| |||
...are being this dismissive. The inability to serialize static variables scoped inside functions is clearly... | |||
October 19, 2021 General » Re: Accessing static data of functions | |||
|---|---|---|---|
| |||
You can't serialize everything. The standard approach to serialization is to use DTOs - types... | |||
October 14, 2021 Announce » Re: New library: argparse, for parsing CLI arguments | |||
|---|---|---|---|
| |||
...I approach serialization is "how would I serialize this thing if I wrote the code... | |||
October 14, 2021 General » Accessing static data of functions | |||
|---|---|---|---|
| |||
...far so good, I’m now able to serialize/deserialize game objects (including private fields), and... | |||
October 05, 2021 Issues » [Issue 22358] Allocations from foreign threads lead to crash | |||
|---|---|---|---|
| |||
...Mutex serialize;
shared static this() {
serialize = new shared Mutex;
}
extern(C) void* foo(void*)
{
serialize... | |||
October 05, 2021 Issues » [Issue 18063] thread_attachThis returns dangling pointer | |||
|---|---|---|---|
| |||
...Mutex serialize;
shared static this() {
serialize = new shared Mutex;
}
extern(C) void* foo(void*)
{
serialize... | |||
October 04, 2021 General » Re: [OT] What are D's values? | |||
|---|---|---|---|
| |||
...is(T == struct)) {
... // serialize structs here
} else static if (is(T == class)) {
... // serialize structs here... | |||
September 20, 2021 General » Re: Static associative array expressions | |||
|---|---|---|---|
| |||
...s["a"]=="b"); ``` That is, you can serialize a hashtable into anything with a relatively... | |||
Copyright © 1999-2021 by the D Language Foundation