On 2012-12-06, 20:17, Suliman wrote:
I am learning D classes and I am getting error when I am try to make
instance of class. erorr:
C:\code\main.d(9): Error: constructor GetFileName.GetFileName.this
(string name) is not callable using argument types ()
http://www.everfall.com/paste/id.php?xie09xz9upth
You have supplied the string you promised to.
You have this constructor:
this(string name)
And call it like this:
new GetFileName();
Where's the string the constructor expects?
Instead, you should call it like thus:
new GetFileName("test");
--
Simen