Quantcast
Channel: ZDoom
Viewing all articles
Browse latest Browse all 3391

Scripting • Function pointers problem.

$
0
0
Doing this :

Code:

Class ClassA play{static void RunStuff(Function<play void(int)> func){func.Call(2);}}Class ClassB play{static void TryRunStuff(){ClassA.RunStuff(callback);}void callback(int i){}}
produces an error like this:

Code:

Cannot convert Function<play void (Pointer<Class<ClassB>>, SInt4)> to Function<play void (SInt4)>
Is this a bug or I'm missing something?

Statistics: Posted by krokots — Tue Jun 11, 2024 11:22 am



Viewing all articles
Browse latest Browse all 3391

Trending Articles