Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
December 02, 2015 [Issue 9872] format should include class field values | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9872 Infiltrator <lt.infiltrator@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lt.infiltrator@gmail.com --- Comment #3 from Infiltrator <lt.infiltrator@gmail.com> --- I like it. Have you put in a PR yet? -- |
July 07, 2017 [Issue 9872] format should include class field values | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9872 Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #4 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> --- (In reply to Andrej Mitrovic from comment #2) > + if (dg.funcptr != &Object.toString) Pretty devious. I think it's not unreasonable. -- |
February 13, 2021 [Issue 9872] format should include class field values | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9872 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://issues.dlang.org/sh | |ow_bug.cgi?id=3248 -- |
July 04, 2022 [Issue 9872] format should include class field values | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9872 --- Comment #5 from Andrej Mitrovic <andrej.mitrovich@gmail.com> --- I think the really consistent part about formatting in Phobos is that the output tends to be semantically-correct syntax. S(0, 0) is correct as you can construct an instance of `S` this way. But `C(0, 0)` would be semantically incorrect as that's not how classes are constructed. You'd (likely) need to use `new C` and you'd have to care about which constructors are actually implemented, so `new C(0, 0)` might not even be semantically correct either. Perhaps instead of changing default formatting a better option would be to have a format spec that dumps out the entire representation of the aggregate. "%s" is taken but we could introduce something else. We could also just close this as WONTFIX. -- |
December 17, 2022 [Issue 9872] format should include class field values | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9872 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P4 -- |
Copyright © 1999-2021 by the D Language Foundation