[sv-ec] Question about labels on the end of methods

From: Chris Spear <Chris.Spear_at_.....>
Date: Mon May 16 2005 - 08:04:53 PDT
The label on the end of a block is a nice feature that replaces the comment that many people use.

The label on a method is its name:

	task foo;
	endtask : foo

But what if the method is declared out-of-block?

	task Packet::foo;

Which of the following is correct?
	endtask : foo
or
	endtask : Packet::foo

To me, the second looks better, but looks aren't everything. 

/*********************************************************   
Chris Spear              Verification Specialist             
Synopsys, Inc.           Phone 508-263-8114      ..  __@     
377 Simarano Drive       Fax   508-263-8123        _`\<,_    
Marlboro, MA 01752 USA   Cell  508-254-7223    .. (*)/ (*)   
Spear_ f rom _Synopsys.com       http://Chris.Spear.net              
*********************************************************/  
Received on Mon May 16 08:04:59 2005

This archive was generated by hypermail 2.1.8 : Mon May 16 2005 - 08:05:24 PDT