[Issue 15907] Unjustified "is not visible from module" deprecation warning

2016-04-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

m.bier...@lostmoment.com changed:

   What|Removed |Added

 CC||m.bier...@lostmoment.com

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using allMembers trait

2016-04-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

m.bier...@lostmoment.com changed:

   What|Removed |Added

Summary|Unjustified "is not visible |Unjustified "is not visible
   |from module" deprecation|from module" deprecation
   |warning |warning when using
   ||allMembers trait

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-04-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

m.bier...@lostmoment.com changed:

   What|Removed |Added

Summary|Unjustified "is not visible |Unjustified "is not visible
   |from module" deprecation|from module" deprecation
   |warning when using  |warning when using
   |allMembers trait|getMember trait

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-04-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

--- Comment #1 from m.bier...@lostmoment.com ---
I forgot to add that it's actually "getMember" which causes the deprecation
warning and "allMembers" is not fully qualified.

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-04-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

Philpax  changed:

   What|Removed |Added

 CC||m...@philpax.me

--- Comment #2 from Philpax  ---
Just ran into this issue as well - are there any "decent" workarounds? All I've
found is manually excluding the problem objects before using getMember, but
that's not really a scalable fix.

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-05-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

Walter Bright  changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com
   Assignee|nob...@puremagic.com|c...@dawg.eu

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-07-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

det <2k...@gmx.net> changed:

   What|Removed |Added

 CC||2k...@gmx.net

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-07-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

Ali Cehreli  changed:

   What|Removed |Added

 CC||acehr...@yahoo.com

--- Comment #3 from Ali Cehreli  ---
Here is another case with two modules (and with a WORKAROUND):

// - a.d:
mixin template MyMixin(alias MODULE) {
shared static this() {
initFunc!(mixin(MODULE))();
}
}

void initFunc(alias MODULE)() {
foreach (member; __traits(allMembers, MODULE)) {
static if(__traits(hasMember, __traits(getMember, MODULE, member),
"someProperty")) {
}
}
}

// - b.d:
import a;

mixin MyMixin!__MODULE__;

void main() {
}

getMember inside a.d causes the following warnings:

a.d(9): Deprecation: b.object is not visible from module a
a.d(9): Deprecation: b.a is not visible from module a

Here is a WORKAROUND. Make the following changes in a.d:

1) Convert initFunc to a mixin template
2) Mix it in where it's called
3) Call it after it's mixed in

mixin template MyMixin(alias MODULE) {
shared static this() {
mixin initFunc!(mixin(MODULE));// (2)
initFunc();// (3)
}
}

mixin template initFunc(alias MODULE) {// (1)
void initFunc() {
foreach (member; __traits(allMembers, MODULE)) {
static if(__traits(hasMember, __traits(getMember, MODULE, member),
"someProperty")) {
}
}
}
}

Ali

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-08-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

Ali Cehreli  changed:

   What|Removed |Added

   Keywords||industry

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-08-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

Martin Nowak  changed:

   What|Removed |Added

 CC||j...@red.email.ne.jp

--- Comment #4 from Martin Nowak  ---
*** Issue 15877 has been marked as a duplicate of this issue. ***

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-08-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/deb87b753a455ae847389642d2835a9fb891ab5a
spec change and changelog entry for Issue 15907

https://github.com/dlang/dlang.org/commit/2ecabf0dab63dcdb935af859093ffc05b366c3ec
Merge pull request #1444 from MartinNowak/fix15907

spec change and changelog entry for Issue 15907

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-08-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/b2d0226d4845d69b60ea26f54c1edec36ad08b11
supplemental change for Issue 15907 fix

- change of __traits(allMembers) semantics cause getSymbolsByUDA to no
  longer return invisible (private) symbols
- add test for using getSymbolsByUDA as mixin template to still access
  private symbols

https://github.com/dlang/phobos/commit/d10780f19544f73907540e98aeee0039807e4578
Merge pull request #4747 from MartinNowak/fix15907

supplemental change for Issue 15907 fix

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-08-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

--- Comment #7 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/f899b4b59620e354b6ba0acfe843efb559202cd8
fix Issue 15907 - unjustified deprecation with getMember

- fixed by changing the semantics of allMembers and derivedMembers to
  respect visibility
- even though the private members were listed before, they haven't been
  accessible
- it's possible to mixin a template in order to use it with
  private symbols (example given in changelog)
- fixed ice10598 test b/c it was relying on the presence of the private
  object import

https://github.com/dlang/dmd/commit/49cb97213303c902844b7189ced1cf8833214437
Merge pull request #6078 from MartinNowak/fix15907

fix Issue 15907 - unjustified deprecation with getMember

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-08-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-08-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

--- Comment #8 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/deb87b753a455ae847389642d2835a9fb891ab5a
spec change and changelog entry for Issue 15907

https://github.com/dlang/dlang.org/commit/2ecabf0dab63dcdb935af859093ffc05b366c3ec
Merge pull request #1444 from MartinNowak/fix15907

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

--- Comment #9 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/101d65993abc868490876883a17b1ba81c04fe19
fix Issue 15907 - unjustified deprecation with getMember

- skip visibility checks for hasMember, getMember, and getOverloads
- inherit scope flags for the new SCOPEflag and noaccesscheck
- keep existing access checks for now

https://github.com/dlang/dmd/commit/6b285369a9b17216244dfdf8f38fbc48ed38dc53
Merge pull request #6111 from MartinNowak/fix15907

fix Issue 15907 - unjustified deprecation with getMember

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-09-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

--- Comment #10 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/b2d0226d4845d69b60ea26f54c1edec36ad08b11
supplemental change for Issue 15907 fix

https://github.com/dlang/phobos/commit/d10780f19544f73907540e98aeee0039807e4578
Merge pull request #4747 from MartinNowak/fix15907

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

--- Comment #11 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/f899b4b59620e354b6ba0acfe843efb559202cd8
fix Issue 15907 - unjustified deprecation with getMember

https://github.com/dlang/dmd/commit/49cb97213303c902844b7189ced1cf8833214437
Merge pull request #6078 from MartinNowak/fix15907

https://github.com/dlang/dmd/commit/101d65993abc868490876883a17b1ba81c04fe19
fix Issue 15907 - unjustified deprecation with getMember

https://github.com/dlang/dmd/commit/6b285369a9b17216244dfdf8f38fbc48ed38dc53
Merge pull request #6111 from MartinNowak/fix15907

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

--- Comment #12 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/f899b4b59620e354b6ba0acfe843efb559202cd8
fix Issue 15907 - unjustified deprecation with getMember

https://github.com/dlang/dmd/commit/49cb97213303c902844b7189ced1cf8833214437
Merge pull request #6078 from MartinNowak/fix15907

https://github.com/dlang/dmd/commit/101d65993abc868490876883a17b1ba81c04fe19
fix Issue 15907 - unjustified deprecation with getMember

https://github.com/dlang/dmd/commit/6b285369a9b17216244dfdf8f38fbc48ed38dc53
Merge pull request #6111 from MartinNowak/fix15907

--