Great! Thank you!
On Saturday, 25 March 2023 at 07:42:28 UTC, Ali Çehreli wrote:
This looks like a bug to me.
Such a problem does not occur when you set all objects with the
new operator.
```d
void main()
{
import std.variant;
auto var = Variant([
"one": new Variant(1), "two": new Variant(2),
"t
On 3/24/23 23:07, Mitchell wrote:
>variant["four"] = Variant(4); // Segfault
Today I learned that VariantN forwards to associative array operations.
Cool I guess. :)
> with a segfault. I'm using LDC2:
Same with dmd. It fails in the destructor of VariantN.
static if (!AllowedTypes.le
Howdy,
I've just tried out `std.variant` and I've noticed that I can
induce a segfault by having a variant of variants. Should this
work?
```d
import std.stdio;
import std.variant;
void main()
{
Variant variant = Variant([
"one": Variant(1),
"two": Variant(2),
"three": Variant(