I think that static lifetime for class methods is illegal for both static
and non-static methods.
DANiel
-----Original Message-----
From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On Behalf Of Surya
Pratik Saha
Sent: Wednesday, February 17, 2010 7:34 AM
To: sv-bc@eda.org; sv-ec@eda.org
Subject: [sv-ec] Extern static class method declaration
Hi,
As per SV 2009 LRM, the non-static method with static variable lifetime
declaration is illegal. But I think following case is legal:
class C;
static task static t;
endtask
endclass
But, I could not find anyway to declare it via external, because as per BNF,
task_prototype rule does not permit to use 'static' after task keyword. So
following case is illegal:
class C;
extern static task static t(); // BNF does not permit the 2nd 'static'
endclass
task static C::t;
endtask
I think LRM should have a provision for that. Different tools behave
differently here though. Is there any mantis already for that?
-- Regards Surya -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Tue Feb 16 23:15:23 2010
This archive was generated by hypermail 2.1.8 : Tue Feb 16 2010 - 23:15:28 PST