March 03, 2023 General » Re: dub: JSON, SDL, YAML, TOML, what color should we paint it ? | |||
|---|---|---|---|
| |||
...sucks for configuration. I want it to serialize to a struct I specify. I'm... | |||
February 21, 2023 Learn » How to get only the field name from an alias? | |||
|---|---|---|---|
| |||
...v.serialize(this);
}
}
struct OldName
{
string name;
}
struct Serializable
{
@OldName("ifield")
int intField;
void serialize... | |||
January 23, 2023 General » Re: Trying to use Mir ion, its a perfect example of the failure of D's attribute system | |||
|---|---|---|---|
| |||
...every type can be serialized, normally you serialize a DTO - a type designed for serialization... | |||
January 19, 2023 General » Re: Trying to use Mir ion, its a perfect example of the failure of D's attribute system | |||
|---|---|---|---|
| |||
...in the type you are trying to serialize. @safe and const are the one that... | |||
January 19, 2023 General » Trying to use Mir ion, its a perfect example of the failure of D's attribute system | |||
|---|---|---|---|
| |||
...figure out Mir Ion so I can serialize some data, and oh boy is it... | |||
December 30, 2022 Learn » Re: Float rounding (in JSON) | |||
|---|---|---|---|
| |||
...documentation). So in asdf we could just serialize the json and it will automatically round... | |||
December 11, 2022 General » Re: The road to Dart 3: A fully sound, null safe language | |||
|---|---|---|---|
| |||
...requires maintenance. With macros, if you could serialize/deserialize classes without any extra code, it... | |||
August 19, 2022 Learn » Re: Fixed-size OutBuffer that doesn't call .resize() automatically? (for database page buffers) | |||
|---|---|---|---|
| |||
...3] = cast(ubyte)(value);
return bytes;
}
void serialize(out ubyte[PAGE_SIZE] outbuf)
{
ubyte[] buf... | |||
August 15, 2022 Learn » Fixed-size OutBuffer that doesn't call .resize() automatically? (for database page buffers) | |||
|---|---|---|---|
| |||
...header.tupleCount++;
header.freeSpacePointer -= tuple.sizeof;
}
void serialize(OutBuffer buf)
{
with (header)
{
buf.write(pageId... | |||
July 04, 2022 Learn » Re: vibe.d Serialize/Deserialize SumType to/from json | |||
|---|---|---|---|
| |||
You can "inherit" from a struct using `alias this`:
```d
struct CustomStruct
{
SumType!(A, B... | |||
Copyright © 1999-2021 by the D Language Foundation