On Tue, May 26, 2009 at 10:57:01PM +0200, Hans Aberg wrote:
|| On 26 May 2009, at 22:38, Luca wrote:
||
|| >> Checking what the compiler accepts is a good way to produce non-
|| >> standard source code
|| > using a pointer inside a union is a good way to produce non-standard
|| > source code?
On 27 May 2009, at 10:32, Vincent Zweije wrote:
|| So what does the C++ standard say about it?
"In a union, at most one of the data members can be active at any
time,
that is, the value of at most one of the data members can be stored in
a union at any time. [...] Each data member is alloca
Le 27 mai 09 à 10:32, Vincent Zweije a écrit :
In short, I see no problem with this union at all as bison uses it,
semantics-wise, but it is unfortunate that you cannot put your own
classes in there in general.
You will be able to do that in Bison 2.6. A preview is available at
http://www.l
On 27 May 2009, at 20:52, Akim Demaille wrote:
You will be able to do that in Bison 2.6. A preview is available at
http://www.lrde.epita.fr/~akim/download/bison-2.4.266-4ff3b.tar.bz2
Using that version, you can use actual objects (not pointers to), as
in the attached sample file.
...
L