digitalmars.D.debugger - Visual D debugger tuple _expand_field
- BetaDamnit (6/6) Feb 20 2020 _expand_field
- Rainer Schuetze (8/15) Feb 23 2020 This is the result of the compiler lowering the tuple to a number of
- Arjan (6/23) Feb 24 2020 Rainer, you worth more money! Thank you for your relentless
_expand_field takes up a huge amount of space for no reason. I think tuple scan be safely listed like arrays. We know they are tuples, no need to display _expand_field=, it just takes up a lot of space in the display for no reason, specially if there are several elements in the tuple.
Feb 20 2020
On 20/02/2020 23:03, BetaDamnit wrote:_expand_field takes up a huge amount of space for no reason. I think tuple scan be safely listed like arrays. We know they are tuples, no need to display _expand_field=, it just takes up a lot of space in the display for no reason, specially if there are several elements in the tuple.This is the result of the compiler lowering the tuple to a number of variables __<varname>_field_<index>. No info is generated about this being a structure-like compound. I have added support to the debugger to recombine these variables to an expandable array, but it wasn't actually trivial: https://github.com/rainers/mago/commit/451f856fd70a311460af1153ce1a1647059b5d89 It will be in the next release.
Feb 23 2020
On Sunday, 23 February 2020 at 17:22:13 UTC, Rainer Schuetze wrote:On 20/02/2020 23:03, BetaDamnit wrote:Rainer, you worth more money! Thank you for your relentless effort and support, it is highly appreciated, at least by me. Thanks! Arjan_expand_field takes up a huge amount of space for no reason. I think tuple scan be safely listed like arrays. We know they are tuples, no need to display _expand_field=, it just takes up a lot of space in the display for no reason, specially if there are several elements in the tuple.This is the result of the compiler lowering the tuple to a number of variables __<varname>_field_<index>. No info is generated about this being a structure-like compound. I have added support to the debugger to recombine these variables to an expandable array, but it wasn't actually trivial: https://github.com/rainers/mago/commit/451f856fd70a311460af1153ce1a1647059b5d89 It will be in the next release.
Feb 24 2020