[sv-ec] 19.7.1 Declaration after procedural code

From: Chris Spear <Chris.Spear_at_.....>
Date: Tue Oct 07 2008 - 13:14:33 PDT
In section 19.7.1, page 509 is the code which seems to show a
declaration after procedural code:

	gc::type_option.comment = "Here is a comment for covergroup g1";
	// Set the weight for coverpoint "a" of covergroup g1
	gc::a::type_option.weight = 3;
	gc g1 = new;

Perhaps it should have been:

	gc g1;
	gc::type_option.comment = "Here is a comment for covergroup g1";
	// Set the weight for coverpoint "a" of covergroup g1
	gc::a::type_option.weight = 3;
	g1 = new;

Section 19.7, page 506 has the declaration and constructor before the
assignments, which is correct.

Chris Spear


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Oct 7 13:41:50 2008

This archive was generated by hypermail 2.1.8 : Tue Oct 07 2008 - 13:42:09 PDT