[sv-ec] RE: Support for static global constants in class


Subject: [sv-ec] RE: Support for static global constants in class
From: David W. Smith (david.smith@synopsys.com)
Date: Sat Apr 12 2003 - 00:08:45 PDT


See below.
 

 <http://www.synopsys.com/>

-----Original Message-----
From: Stefen Boyd [mailto:stefen@boyd.com]
Sent: Friday, April 11, 2003 4:05 PM
To: David W. Smith
Cc: sv-ec@eda.org
Subject: Re: Support for static global constants in class

Looks like static in classes was completely overlooked in the
BNF.

REMOVE (A.1.8):
   hiding_property ::=
     protected
     | private

DWS: Done
 
ADD (A.1.8 after class_item):
    class_item_property ::=
      static
      | protected
      | private

REPLACE all occurrences of hiding_property with class_item_property

DWS: Done

REPLACE (A.1.8):
extern_method_declaration ::=

        { tf_property } function [ automatic ] class_identifier ::
function_body_declaration

| { tf_property } task [ automatic ] class_identifier ::
task_body_declaration

WITH:
extern_method_declaration ::=

        { tf_property } function [ lifetime ] class_identifier ::
function_body_declaration

| { tf_property } task [ lifetime ] class_identifier ::
task_body_declaration

REPLACE (A.2.6):
function_declaration ::=

        function [ automatic ] function_body_declaration

WITH:
function_declaration ::=

        function [ lifetime ] function_body_declaration

REPLACE (A.2.7):

task_declaration ::= task [ automatic ] task_body_declaration

WITH:

task_declaration ::= task [ lifetime ] task_body_declaration

DWS: Done

At 03:10 PM 4/11/2003 -0700, David W. Smith wrote:

In Section 11.17 we clearly support the following:
 
static const int size = 0;
 
According to Francoise the BNF does not support this. Can you please provide
me with either verification that the BNF works or a correction to the BNF to
support this? Today?

Regards
David

David W. Smith
Synopsys Scientist

Synopsys, Inc.
Synopsys Technology Park
2025 NW Cornelius Pass Road
Hillsboro, OR 97124

Voice: 503.547.6467
Main: 503.547.6000
FAX: 503.547.6906
Email: david.smith@synopsys.com
http://www.synopsys.com <http://www.synopsys.com/>
 



This archive was generated by hypermail 2b28 : Sat Apr 12 2003 - 00:07:50 PDT