Passing a subroutine to another
Posted: Sun Feb 01, 2026 12:13 am
Is it possible to pass a subroutine as an argument to another subroutine? That is, something like
or
Code: Select all
call subA("subB")
subroutine subA(string %f)
call {%f}
endsub
subroutine subB
@uiprompt("success!")
endsubCode: Select all
call subA(subB)
subroutine subA(subroutine f)
call f
endsub
subroutine subB
@uiprompt("success!")
endsub