On Saturday, 7 January 2017 at 13:45:53 UTC, crimaniak wrote:
Ok, I found it: https://issues.dlang.org/show_bug.cgi?id=16044
yep. sorry, my search-fu is completely broken, so i didn't
provide you with the number.
Ok, I found it: https://issues.dlang.org/show_bug.cgi?id=16044
On Saturday, 7 January 2017 at 12:29:34 UTC, ketmar wrote:
On Saturday, 7 January 2017 at 12:11:20 UTC, crimaniak wrote:
Is this a bug or documentation problem?
well, it's hard to say. package.d is one of the cases where you
*have* to provide explicit module definition. ;-) 'cause
implicit
p.s.: otherwise, it *should* work with explicit module
declaration. but then, we have some well-known bugs with
cross-module introspection, and some heisenbugs with package
introspection.
On Saturday, 7 January 2017 at 12:11:20 UTC, crimaniak wrote:
Is this a bug or documentation problem?
well, it's hard to say. package.d is one of the cases where you
*have* to provide explicit module definition. ;-) 'cause implicit
one creates module with name `package`, which is teh
On Saturday, 7 January 2017 at 10:38:29 UTC, ketmar wrote:
On Saturday, 7 January 2017 at 10:27:51 UTC, Nicholas Wilson
wrote:
Do you require a module statement per chance?
it doesn't matter. if there is no explicit module declaration,
compiler will insert implicit one. from the code PoV,
On Saturday, 7 January 2017 at 10:27:51 UTC, Nicholas Wilson
wrote:
Do you require a module statement per chance?
it doesn't matter. if there is no explicit module declaration,
compiler will insert implicit one. from the code PoV, there is no
difference at all.
On Saturday, 7 January 2017 at 09:46:54 UTC, crimaniak wrote:
Hi!
I need to iterate module members and find specific classes (and
make tuple).
class foo{};
pragma (msg, __traits(allMembers,mixin(__MODULE__)));
gives me empty tuple. I found also this thread from 2011:
On Saturday, 7 January 2017 at 09:46:54 UTC, crimaniak wrote:
Hi!
I need to iterate module members and find specific classes (and
make tuple).
class foo{};
pragma (msg, __traits(allMembers,mixin(__MODULE__)));
gives me empty tuple.
works like a charm both in 2.071 and in git HEAD.