Re: default construction is disabled for type

2019-03-05 Thread Machine Code via Digitalmars-d-learn
So I find out the issue: it was due a struct member of the class 
having @disable this();




Re: default construction is disabled for type

2019-03-05 Thread Machine Code via Digitalmars-d-learn

public this() { }

Doesn't change anything...


default construction is disabled for type

2019-03-05 Thread Machine Code via Digitalmars-d-learn
What's that error? below code used to work fine, now it gives 
this compiler error.


class Keyword
{
this(string value, Token type)
{
this.value = value;
this.type = type;
}

string value;
Token type;
Keyword next;
}


static Keyword[] hashtab = new Keyword[hashtab_siz];