]> git.corax.cc Git - toolbox/commit
toolbox.sh: Don't require interfaces to be included manually
authorMatthias Kruk <m@m10k.eu>
Thu, 22 Dec 2022 06:57:48 +0000 (15:57 +0900)
committerMatthias Kruk <m@m10k.eu>
Mon, 9 Jan 2023 04:20:17 +0000 (13:20 +0900)
commit50c1e5af53a2ade8692bcfd1a62f6db0ae3ca09d
treeddee2b03dcce5dc2d95d5014f5843f19e375affc
parent601e20516222215b7a8f1989878fb8b8073ec23d
toolbox.sh: Don't require interfaces to be included manually

When a module implements an interface, it has to include the module
that defines the interface before calling `implements()'. However,
since the name of an interface and the module that defines it are
necessarily identical, there is no ambiguity and the module should
be included automatically.

This commit modifies the function `implements()' so that it includes
the interface's module before registering the implementation.
toolbox.sh