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
```
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
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
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