[sv-bc] RE: [sv-ec] Extern static class method declaration

From: Bresticker, Shalom <shalom.bresticker@intel.com>
Date: Wed Feb 17 2010 - 00:58:44 PST

Hi,

> I think that at the end of 8.6 talking only about constructor
> methods ( methods with name "new")

No, 8.6 is "Object methods". 8.7 is "Constructors".

 
> In LRM "8.9 Static methods" chapter wrote:
> " Methods can be declared as static."
> And also:
>
> "A static method is different from a task 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 // ILLEGAL: nonstatic
> class method with
> // static variable lifetime
> endclass

Correct. So "static task" is legal and "task static" is illegal.

The sentence, "Methods can be declared as static" refers to "static methods", which is the syntax "static task".

The sentence, "It shall be illegal to declare a class method with a static lifetime," in 8.6 refers to "task static".

Shalom
---------------------------------------------------------------------
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 Wed Feb 17 01:00:29 2010

This archive was generated by hypermail 2.1.8 : Wed Feb 17 2010 - 01:00:32 PST