Hi Dave,
Thanks for the link, but i have doubts
task static foo();
.......
endtask
here it is non static class method with static variable lifetime, here why we are saying non_static class method, what does it really mean??
module test;
class name;
int j; //automatic variable
task static foo();
j++;
$display("j=%0d",j);
endtask
endclass
initial begin
name n;
n = new;
n.foo;
n.foo;
end
endmodule
here why we need to create object for the class, if i am not creating object it is showing null handle dereference, as task is non_static but variables inside are having static lifetime,only for automatic variable we are creating object??
static task foo();
..........
endtask
here it is static class method with automatic variable lifetime, why we call it is as static class method but inside this method variables are having automatic lifetime, can you please justify what does we really mean by static class method.
looking forward to your reply
Regards
Somu