In objc you would create delegates. So lets say i have in my main.lua file, this
Local b = require “mymodule”
Local d = b.new()
Then
Local e = d.getfile(“dadada.txt”)
I would like the getfile function to trigger a function inside the main.lua if the file downloads or fails, two different functions.
Is it as simple as both files requiring on another? I hope i am making myself understandable. I want my module to call a function in its parent [import]uid: 61610 topic_id: 10756 reply_id: 310756[/import]