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.Received on Tue Feb 16 22:34:30 2010
This archive was generated by hypermail 2.1.8 : Tue Feb 16 2010 - 22:34:56 PST