-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
You should be able to put methods added via native extensions into a namespace.
charly_namespace "mynamespace" do
charly_api "mymethod" do
TString.new "Hello world"
end
endAccess inside charly:
const mynamespace = __internal__namespace("mynamespace")
mynamespace.mymethod() # => "Hello world"The interpreter will automatically create bindings to all these methods.
Reactions are currently unavailable