Deleted member 219079
D
Deleted member 219079
How to make something like this work?
No my code doesn't look like that, made that to represent my problem.
So problem is, is there a way to call a set function on destroy of a struct?
JASS:
struct something
function f
method destroy takes nothing returns nothing
call f()
call this.deallocate()
endmethod
endstruct
function asd takes function f returns nothing
local some = something.create()
set some.f = f
call some.destroy()
endfunction
So problem is, is there a way to call a set function on destroy of a struct?