According to Doug, "It is possible to call class constructors and other initialization functions in package scopes. This feature makes it possible to encapsulate generic 'singleton' functionality in a simulation. Examples could be a socket-based library, or an I/O library, or something else that consumes system resources. Currently there is no way to write automatic cleanup code for this type of package functionality without a hack like introducing a final block into a related module, or explicitly cleaning up the resources with a function call from inside a related module. If we allowed final blocks in packages, the problem would be solved." To me, preventing hacks is a priority. All the best, -- BradReceived on Tue May 9 18:49:31 2006
This archive was generated by hypermail 2.1.8 : Tue May 09 2006 - 18:49:37 PDT