Re: [sv-ec] clarificstion about enumeration typed objects


Subject: Re: [sv-ec] clarificstion about enumeration typed objects
From: Arturo Salz (Arturo.Salz@synopsys.com)
Date: Mon Dec 09 2002 - 00:18:00 PST


Francoise,

The default value of an enumeration type variable is the first element in the
enumeration. In the example below c is initialized to red.

This is mentioned in Table 4-5 (page 29), but it should described in the
section that describes enumerations (3.10.1). Thanks for catching this.

    Arturo

----- Original Message -----
From: "Francoise Martinolle" <fm@cadence.com>
To: <sv-bc@eda.org>
Cc: <sv-ec@eda.org>
Sent: Friday, December 06, 2002 2:20 PM
Subject: [sv-ec] clarificstion about enumeration typed objects

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
    '



This archive was generated by hypermail 2b28 : Mon Dec 09 2002 - 00:18:58 PST