How does one determine the UDAs of all symbols contained in a given module?
Andrew Edwards via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jul 20 21:16:35 PDT 2017
On Wednesday, 19 July 2017 at 14:23:25 UTC, Jacob Carlborg wrote:
>
> Here's an example:
Thanks... Minus the AliasSeq bit, this is pretty much what I've
been working with since talking to Brain. The main problem I'm
facing is that it fails to compileif any of the symbols in the
imported module is marked private.
findudas.d-mixin-17(17): Error: ScopeDsymbol
findudas.getModuleSymbols!"somepackage.mod1".__anonymous.__anonymous variable somepackage.mod1.workhorse is private
findudas.d-mixin-17(17): Deprecation: somepackage.mod1.workhorse
is not visible from module findudas
findudas.d-mixin-21(21): Error: ScopeDsymbol
findudas.getModuleSymbols!"somepackage.mod1".__anonymous.__anonymous variable somepackage.mod1.workhorse is private
findudas.d-mixin-21(21): Deprecation: somepackage.mod1.workhorse
is not visible from module findudas
findudas.d(34): Error: template instance
findudas.getModuleSymbols!"somepackage.mod1".getModuleSymbols.printUDAs!(mod1) error instantiating
findudas.d(43): instantiated from here:
getModuleSymbols!"somepackage.mod1"
More information about the Digitalmars-d-learn
mailing list