https://dpaste.dzfl.pl/74d67cfca3e8
On 05/22/2017 10:13 PM, Enjoys Math wrote:
immutable struct String(T) {
Marking a whole struct as `immutable` is usually a mistake. It applies
to all methods, making them unusable on mutable and const instances.
public:
this(immutable T[] s) {
This means you can create `String`s
On Monday, 22 May 2017 at 20:12:56 UTC, Enjoys Math wrote:
I had to employ const / immutable to some things to get passed
some compiler errors. Then the poisoning continues.
How do I get this code to run?
String's will hold a T[] which actually will not be modified by
the String methods
On Monday, 22 May 2017 at 20:12:56 UTC, Enjoys Math wrote:
I had to employ const / immutable to some things to get passed
some compiler errors. Then the poisoning continues.
How do I get this code to run?
String's will hold a T[] which actually will not be modified by
the String methods
I had to employ const / immutable to some things to get passed
some compiler errors. Then the poisoning continues.
How do I get this code to run?
String's will hold a T[] which actually will not be modified by
the String methods ("immutable strings of T").
I did not want to use any