muzzel
New Member
- Reaction score
- 1
Hello,
im trying to use stub methods in ZinC, just like in vJass, but they just wont work. Im not sure whether ZinC just doesnt support them (quite unlikely) or the keyword is different / im using it the wrong way.
Here is my test code:
Error is:
im trying to use stub methods in ZinC, just like in vJass, but they just wont work. Im not sure whether ZinC just doesnt support them (quite unlikely) or the keyword is different / im using it the wrong way.
Here is my test code:
Code:
//! zinc
library Test {
struct A {
stub method whatever() {
BJDebugMsg("Whatever a");
}
}
struct B extends A {
method whatever() {
BJDebugMsg("Whatever b");
}
}
function onInit() {
B myB = B.create();
myB.whatever();
}
}
//! endzinc
Error is:
so he doesnt recognize stub as a keyword.Unexpected: "method"