November 29, 2015 [phobos] [D-Programming-Language/phobos] 79fd6a: Enable getSymbolsByUDA to retrieve private members... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/phobos Commit: 79fd6aac7956179b300c43f3320347ce0c1fe46b https://github.com/D-Programming-Language/phobos/commit/79fd6aac7956179b300c43f3320347ce0c1fe46b Author: Ryan Roden-Corrent <ryan@rcorre.net> Date: 2015-11-28 (Sat, 28 Nov 2015) Changed paths: A std/internal/test/uda.d M std/traits.d Log Message: ----------- Enable getSymbolsByUDA to retrieve private members. Resolves #15335: getSymbolsByUDA fails if type has private members. Generous (ab)use of mixins allows getSymbolsByUDA to reference symbols without trying to access them, allowing it to inspect private members without failing. Testing this required private symbols defined outside of std.traits. This adds std.internal.test.uda, which defines a struct containing private members that is used in a unittest added to std.traits. Commit: d1d129243f828248fa1b9e0666980903563ef1ba https://github.com/D-Programming-Language/phobos/commit/d1d129243f828248fa1b9e0666980903563ef1ba Author: Brian Schott <briancschott@gmail.com> Date: 2015-11-29 (Sun, 29 Nov 2015) Changed paths: A std/internal/test/uda.d M std/traits.d Log Message: ----------- Merge pull request #3827 from rcorre/getSymbolsByUDA_private2 Enable getSymbolsByUDA to retrieve private members. Compare: https://github.com/D-Programming-Language/phobos/compare/19b272f18ae1...d1d129243f82 |
Copyright © 1999-2021 by the D Language Foundation