Re: How do you call hashOf() on a string?

2017-05-22 Thread Enjoys Math via Digitalmars-d-learn
Changing @safe to @system worked. IDK, but w/e! ;-)

How do you call hashOf() on a string?

2017-05-22 Thread Enjoys Math via Digitalmars-d-learn
module smallest_grammar; import std.conv; import std.algorithm; struct Symbol(T) { public: this(T sym, bool isVar) { this.sym = sym; this.is_var = isVar; } @property T symbol() { return sym; } @property bool isVar() { return