[sv-ec] package classes and anonymous programs

From: Michael Burns <michael.burns_at_.....>
Date: Mon Nov 20 2006 - 14:02:41 PST
Hi folks,

When defining classes in a package intended for use in a program, is there any 
need to use an anonymous program? I found an opinion in the email archives that 
active vs. reactive scheduling of events created by calling class methods should 
be determined by where the class is instantiated (program or module), rather 
than where it's defined, but the 1800-2005 LRM itself seems silent on the matter 
(so far as I have been able to determine). Mantis seems broken at the moment 
(can't connect to database), so I couldn't search there.

If it is the object context rather than the class definition context that 
determines execution semantics, then the only effect I can think of that the 
anonymous program provides is to hide the definition from modules and 
interfaces; is this the case?

Another monkey wrench I just though of: what if the class is instantiated in a 
module and the method is called from a program? My guess would be that the 
method call would work just like calling module tasks or functions from a 
program, treating the class properties as module variables.

I have a feeling these issues have been discussed before; if there are old 
emails or other materials my searches haven't managed to find, a few pointers 
would make me happy.

Thanks,
Mike Burns
Freescale
Received on Mon Nov 20 14:02:46 2006

This archive was generated by hypermail 2.1.8 : Mon Nov 20 2006 - 14:04:02 PST