]> git.corax.cc Git - toolbox/commit
toolbox.sh: Allow modules to implement their own interface
authorMatthias Kruk <m@m10k.eu>
Mon, 9 Jan 2023 05:13:26 +0000 (14:13 +0900)
committerMatthias Kruk <m@m10k.eu>
Mon, 9 Jan 2023 05:13:26 +0000 (14:13 +0900)
commit55eeb4218a9bf2cab4d947d05b9314e18273d286
tree80bbfc21725121277e9f58c1889c85cc6d4de701
parent50c1e5af53a2ade8692bcfd1a62f6db0ae3ca09d
toolbox.sh: Allow modules to implement their own interface

The interface/implements mechanism does not allow a module to
implement methods of the interface that it declares. This makes it
impossible to write modules that extend other modules.

This commit changes the interface mechanism so that a module may
provide methods of the interface that it declares. This is done by
renaming module functions if they clash with names of the interface's
method stubs.
toolbox.sh