You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A package module can be used to publicly import other modules, while enabling a simpler import syntax. It enables converting a module into a package of modules, without breaking existing code which uses that module
proposal 2 (without nim compiler support)
when upgrading from a single file foo.d to a directory foo/, we can do this:
before:
# in foo.nim:
# wrapper code goes here
after:
# in foo.nim:
# only 2 lines, eg:
import foo/wrapper
export wrapper
# in foo/wrapper.nim
# wrapper code goes here
# in foo/demo.nim
# demo code goes here
# etc: additional files specific to formula can be added
The text was updated successfully, but these errors were encountered:
goals
import soloud
https://github.com/dlang/phobos/blob/master/std/range/package.d
proposal 1 (requires nim compiler support)
package.d
, eg:foo.d
gets later migrated tofoo/package.d
proposal 2 (without nim compiler support)
when upgrading from a single file
foo.d
to a directoryfoo/
, we can do this:The text was updated successfully, but these errors were encountered: