On Thursday 23 March 2006 17:14, Andrew Pinski wrote: > > On Mar 23, 2006, at 11:10 AM, Richard Guenther wrote: > > > > > > Well - we could hack a new type attribute to specify min/max values... > > Or maybe try to using C++ instead since C++ rules for enums are > different > than C :).
Well, I like the attribute idea since it gives much more flexibility in making examples. Also, though I guess this only matters to me, in order to produce C++ examples I'd have to build the compiler with C++ support, which I'd rather not do since I have no use for C++ otherwise. Ciao, Duncan.