This is explicitly described in 8.9 in Draft 8-prelim: "A static method is different from a method with static lifetime. The former refers to the lifetime of the method within the class, while the latter refers to the lifetime of the arguments and variables within the task. class TwoTasks; static task t1(); ... endtask // static class method with // automatic variable lifetime task static t2(); ... endtask // nonstatic class method with // static variable lifetime endclass By default, class methods have automatic lifetime for their arguments and variables." Shalom > I have similar type of confusion on class method. > As per BNF, we can declare a method in both the ways: > > class C; > task static t; // method lifetime > ... > endtask > endclass > > class C; > static task t; // class item qualifier > ... > endtask > endclass > > Also its other combinations allowed. Do both mean same? I did > not see anything in the LRM about this. --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Tue Jan 20 22:06:37 2009
This archive was generated by hypermail 2.1.8 : Tue Jan 20 2009 - 22:07:09 PST