We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As proposed some time ago in examples/modules.phia.
Modules will be used to group functions together and enable the linking of the standard library via wrappers.
Sophia/examples/modules.phia
Lines 18 to 24 in 3b148ea
Calling functions of a given module:
Lines 26 to 33 in 3b148ea
(module <name>)
consts.MODULE_TABLE
expr.Module.Eval()
(use <module>)
consts.FUNC_TABLE
<module_name>::
(<module>::<function> <args)
The text was updated successfully, but these errors were encountered:
core: setup for supporting modules (#8)
3b148ea
No branches or pull requests
Idea
As proposed some time ago in examples/modules.phia.
Modules will be used to group functions together and enable the linking of the standard library via wrappers.
Sophia/examples/modules.phia
Lines 18 to 24 in 3b148ea
Calling functions of a given module:
Sophia/examples/modules.phia
Lines 26 to 33 in 3b148ea
Implementation details:
(module <name>)
inconsts.MODULE_TABLE
via theexpr.Module.Eval()
structure(use <module>)
will evaluate the module and place its functions into theconsts.FUNC_TABLE
prefixed with<module_name>::
.(<module>::<function> <args)
is now possibleThe text was updated successfully, but these errors were encountered: