Re: [sv-ec] label after endfunction for out-of-scope function definition

From: Steven Sharp <sharp_at_.....>
Date: Fri Jan 30 2009 - 12:57:45 PST
> endfunction : f //this one is ok?
>     vs.
> endfunction : C::f //or this one is ok?

According to the BNF, it is 

 endfunction : f

The BNF allows only 

 [ : function_identifier ].

It does not allow

 [ : [ interface_identifier . | class_scope ] function_identifier ]

as the header does.  And since the label is just there as a sort of
compiler-checked comment, the simple identifier should be enough to
indicate to the user what this endfunction goes with.

Steven Sharp
sharp@cadence.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Jan 30 12:58:21 2009

This archive was generated by hypermail 2.1.8 : Fri Jan 30 2009 - 12:59:03 PST