[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] cmd: set: Introduce tree-print set sub-command
From: |
Jose E. Marchesi |
Subject: |
Re: [PATCH] cmd: set: Introduce tree-print set sub-command |
Date: |
Wed, 12 Feb 2020 15:50:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hi Carlo.
I thought about a corner case: when the elements of an array span for
several lines (i.e. they are structs) I get this:
(poke) deftype Foo = struct { int i; long j; }
(poke) .set tree-print deep
(poke) Foo[3] @ 0#B
[Foo {
i=0x464c457f,
j=0x10102L
},Foo {
i=0x0,
j=0x1003e0001L
},Foo {
i=0x0,
j=0x0L
}]
What about emitting this instead:
(poke) Foo[3] @ 0#B
[Foo {
i=0x464c457f,
j=0x10102L
},
Foo {
i=0x0,
j=0x1003e0001L
},
Foo {
i=0x0,
j=0x0L
}]
I think it is slightly more readable this way.