[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: syntax_error constructor is declared inline
From: |
Akim Demaille |
Subject: |
Re: syntax_error constructor is declared inline |
Date: |
Wed, 9 May 2018 19:19:37 +0200 |
> Le 9 mai 2018 à 05:00, Frank Heckenbach <address@hidden> a écrit :
>
> Hans Åberg wrote:
>
>>> On 8 May 2018, at 11:13, Akim Demaille <address@hidden> wrote:
>>>
>>> I'm all rusted on Bison.
>>
>> Welcome back, though!
>
> Yes, nice to see you again!
Thanks :)
>> Your idea of letting Bison to keep track of the type does not work
>> in mid-actions as it is needed to decide which copy constructor to
>> use, unlike C then.
>
> And likewise for %destructor and %printer.
This is something I have not studied yet, I’ll have to look at it.
I’m really disappointed that we have to double-code the symbol types.
I did not run benchmarks, but I expect more space and more time with
std::variants. Not to mention the C++-98/03 compatibility :)