]> git.corax.cc Git - toolbox/commit
toolbox.sh: Make interface methods point to error stub by default
authorMatthias Kruk <m@m10k.eu>
Thu, 22 Dec 2022 06:50:18 +0000 (15:50 +0900)
committerMatthias Kruk <m@m10k.eu>
Mon, 9 Jan 2023 04:20:17 +0000 (13:20 +0900)
commit601e20516222215b7a8f1989878fb8b8073ec23d
tree77a5810fb90db3dc7ae6fb5accfcd0d187bd1059
parentef5f167515aed68166215e1ab02c2434d93de0f1
toolbox.sh: Make interface methods point to error stub by default

Modules that declare an interface are expected to implement all
methods, prefixing method names with an underscore. However, since
there may be (partially) unimplemented interfaces, the framework
should not make such assumptions about implementations.

This commit modifies the implementation of interfaces so that
methods reference an error stub by default, which warns the caller
that the method is not implemented.
toolbox.sh