__namespace__()
functionThere is function named __namespace__
. this function returns the current namespace as string.
Look at this example:
namespace app
namespace core
println(__namespace__())
endns
endns
println(__namespace__())
output:
app.core.