I’m not sure if this is related to this issue but I’m getting this error in HaxeDevelop, albeit unrelated to macros. I created a new class called Helper in the same directory as another class called Model and used one of the methods in the Helper class in Model and get this error. I am new to Haxe so it might be that I’m doing something stupid but I’m struggling to rectify this issue. Do I have to use static
on the methods in the Helper class?
Yes, otherwise you need to create an instance of Helper
to call Random()
.
Thank you, it works!