numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
18 stars 6 forks source link

Enable relative namespaces #18

Closed numeredev closed 1 year ago

numeredev commented 1 year ago

DESCRIPTION

What does your feature request improve on? Please describe. Relative namespaces would make code more portable than it currently is.

Describe the solution you'd like Enable relative namespaces, e.g. like $this~~myProc() referring to a file like this ../myProc.nprc. This is needed to enable abstract programming in multiple sub-namespaces as well as for the planned app generator in #710.

Additional context Migrated from here: https://sourceforge.net/p/numere/tickets/787/

(Do not write below this line)


DEVS' SECTION

ANALYSIS

Should actually be quite simple by just replacing ~~ in procedure file names with /../ instead of /. This has to be done in every procedure file name parser (might be a good coincidence to actually unify those parsers). Consider to add this to the documentation file as well.

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST