Re: clarificstion about enumeration typed objects


Subject: Re: clarificstion about enumeration typed objects
From: Kevin Cameron x3251 (Kevin.Cameron@nsc.com)
Date: Fri Dec 06 2002 - 16:19:06 PST


> From: "Francoise Martinolle" <fm@cadence.com>
>
> What is the defasult value of a object (variable) defined of an enumeration type.
>
> Let's assume enum Colors = {red, blue, green};
> Colors c;
> What is the value of c?
>
> I don't see it specified in the standard.
>
> Francoise
> '

Since we're doing runtime checking it should probably be undefined (out-of-range),
so that it has to be set before use.

Kev.



This archive was generated by hypermail 2b28 : Fri Dec 06 2002 - 16:19:57 PST