[PATCH] teach gengtype about 'mutable'

Richard Biener richard.guenther@gmail.com
Tue Oct 15 09:25:00 GMT 2019


Yes, it is. :)

On Mon, Oct 14, 2019 at 10:09 PM Nathan Sidwell <nathan@acm.org> wrote:
>
> On 10/14/19 3:46 PM, Jeff Law wrote:
> > On 10/14/19 6:09 AM, Nathan Sidwell wrote:
> >> On 10/14/19 7:16 AM, Richard Biener wrote:
> >>> On Sun, Oct 13, 2019 at 4:45 PM Nathan Sidwell <nathan@acm.org> wrote:
> >>>>
> >>>> In constifying some more of line-map I discovered gengtype didn't
> >>>> know mutable.
> >>>> Added thusly.
> >>>
> >>> mutable is bad.  Why do you want to use it?
> >>
> >> the line map info has a caching field.
> > Isn't that in fact a classic use case for mutable?
>
> Indeed it is.  I'm curious as to the 'mutable is bad' origin.  Is it
> similar to 'goto is bad'?
>
> nathan
>
>
> --
> Nathan Sidwell



More information about the Gcc-patches mailing list