[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: default statement notice
From: |
Paul Eggert |
Subject: |
Re: default statement notice |
Date: |
Tue, 18 Jan 2005 00:26:00 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
address@hidden writes:
> Thanks for the Hans Aberg notice about the `default:' statement.
> Looks like its safe for c but possibly not for all c++ compilers.
Sorry, but I couldn't really follow what he wrote. My guess is that
he was writing about his own C++ template file, which is a different
animal.
The C++ code that is generated by Bison 2.0 does not use "default:"
here, and his remarks about Bison using "default:" to implement $$ =
$1 do not seem to apply to the templates shipped with Bison 2.0.
Perhaps in some later version of the template we'll use "default:"
along the lines that he suggests; at that point, of course we'll have
to remove the "default:break;" that I just added. But in the meantime
I don't see how the "default:break;" could hurt, regardless of whether
we're using C or C++.