How can I get the calling resource when executing an export?

First of all, sorry for posting here, but for some reason I can’t post on the Resource Develoment forum.

So, say I have this export:

exports.myres:myfunction()

Is there a way to get the resource that is calling myfunction?

I have no idea if it would work, but with tables in mind it should work like this? If not sorry D:

exports.myres:myfunction(‘resourcename’)
exports[‘resourcename’]:myOtherFunction()

http://lua-users.org/wiki/TablesTutorial

ex:

function myfunction(res)
    local whatcalledme = exports[res]
end

there used to be GetInvokingResource but this broke some time ago, why specifically do you desire this?