Re: Two struct objects with their own Redblack trees seem to be incorrectly joining trees values?

2025-03-24 Thread FeepingCreature via Digitalmars-d-learn
On Monday, 24 March 2025 at 17:39:34 UTC, WhatMeWorry wrote: ``` void setName(string n) { this.name = n; } string name; uint[Location] aa; // associative array auto rbt = new RedBlackTree!(Node, "a.f < b.f", true); // true: allowDuplicates You would *think* that this would

Two struct objects with their own Redblack trees seem to be incorrectly joining trees values?

2025-03-24 Thread WhatMeWorry via Digitalmars-d-learn
``` module bag; import std.container.rbtree : RedBlackTree; // template import std.stdio : writeln; struct Location { int r; // row int c; // column } struct Node { this(Location locale, uint f) { this.locale = locale; this.f = f; } Location locale; ui

Testing issues related to changes made in phobos locally

2025-03-24 Thread Akshat Sharma via Digitalmars-d-learn
I am currently working on a good first issue in the phobos (https://github.com/dlang/phobos) . So to work on that I referred to the contribution guide (https://wiki.dlang.org/Contributing_to_Phobos#Full_build) . As per the guide , the workflow should be as follows :- 1.Fork Phobos on GitHub 2

Re: alias to connect with superclass's constructor

2025-03-24 Thread Andy Valencia via Digitalmars-d-learn
On Monday, 24 March 2025 at 03:46:25 UTC, Salih Dincer wrote: When you add an empty constructor, the code still runs without an error Yes, I had already made it run. I was asking about making it run using aliases which, as it turns out, you can't. I'm grateful that there's even a PR in the