Write variable from other function

Dicebot public at dicebot.lv
Fri Feb 28 08:26:15 PST 2014


On Friday, 28 February 2014 at 16:16:36 UTC, Suliman wrote:
> Thanks! I know about static, but now I need experience to work 
> with class constructor. So now I can't understand what I can do 
> with error: "Error: need 'this' for 'isConfigExist' of type 
> 'bool()'"

Most likely you don't create an instance. This works:

http://dpaste.dzfl.pl/7c6ada9056ea


More information about the Digitalmars-d-learn mailing list