On Mon, Oct 16 2023, Per Bothner wrote:
> On 10/16/23 05:36, Gavin Smith wrote:
>> On Sun, Oct 15, 2023 at 12:00:51PM -0700, Per Bothner wrote:
>>> I'm far from a C++ expert these days, but some ideas:
>>>
>>> * First of course you can define some helper methods:
>>>
>>> class TargetElement {
>>>
On 10/16/23 05:36, Gavin Smith wrote:
On Sun, Oct 15, 2023 at 12:00:51PM -0700, Per Bothner wrote:
I'm far from a C++ expert these days, but some ideas:
* First of course you can define some helper methods:
class TargetElement {
Extra *extra;
Command *unit_command() { return extra ? e
On Sun, Oct 15, 2023 at 12:00:51PM -0700, Per Bothner wrote:
> I'm far from a C++ expert these days, but some ideas:
>
> * First of course you can define some helper methods:
>
> class TargetElement {
> Extra *extra;
> Command *unit_command() { return extra ? extra->init_command() : nullptr;