[sv-ec] protected/local, virtual, static, extern quesiton

From: Don Mills <mills_at_.....>
Date: Thu Sep 20 2007 - 16:40:21 PDT

Does the ordering of protected/local and virtual matter?

That is,
virtual protected function void blah();
vs.
protected virtual function void blah();

It appears that at least one vendor doesn't seem to care.

As for the other keywords, I believe that extern has to go before everything.
Are there any ordering requirements on static?

From the LRM:
class_method ::=
{ method_qualifier } task_declaration
| { method_qualifier } function_declaration
| extern { method_qualifier } method_prototype ;
| { method_qualifier } class_constructor_declaration
| extern { method_qualifier } class_constructor_prototype

method_qualifier7 ::=
virtual
| class_item_qualifier

class_item_qualifier7 ::=
static
| protected
| local



footnote #7) In any one declaration, only one of protected or local is allowed, only one of rand or randc is
allowed, and static and/or virtual can appear only once.


-- 
==========================================================
Don Mills
mills@lcdm-eng.com
www.lcdm-eng.com
==========================================================

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean. Received on Thu, 20 Sep 2007 16:40:21 -0700

This archive was generated by hypermail 2.1.8 : Thu Sep 20 2007 - 16:41:52 PDT