RE: [sv-ec] RE: [sv-cc] FW: a question about system verilog class deconstructor

From: Arturo Salz <Arturo.Salz_at_.....>
Date: Wed Jan 10 2007 - 23:23:49 PST
Doug,

The Vera language does include a finalize method to address precisely the type of issue faced by Alex. Extending this to SV is straightforward. There are a few issues that need to be addressed such as: What is the process that calls the finalize method? When is a finalize method called? Are finalize methods called every time? And my favorite peeve: Does finalize support object resuscitation?

	Arturo

-----Original Message-----
From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On Behalf Of Warmke, Doug
Sent: Wednesday, January 10, 2007 10:50 AM
To: Joao Geada
Cc: sv-cc@eda.org; sv-ec@eda.org
Subject: [sv-ec] RE: [sv-cc] FW: a question about system verilog class deconstructor

Joao,

What a great wikipedia reference.  Thanks!
This new information makes the issues a bit clearer to me.

One take on it would be:

a) For garbage collection and implicit control, go with the
   finalizer concept. Though, there are those limitations
   and bad properties mentioned in the WikiPedia entry.

b) For users who want to use an explicit control strategy,
   (i.e. call cleanup code and then assign to null),
   users could avoid declaring finalizer methods and go
   with explicit cleanup methods instead.

Regards,
Doug
 

> -----Original Message-----
> From: Joao Geada [mailto:joao@clkda.com] 
> Sent: Wednesday, January 10, 2007 10:20 AM
> To: Warmke, Doug
> Subject: Re: [sv-cc] FW: a question about system verilog 
> class deconstructor
> 
> Doug:
> 
> technically (in software engineering terms) these things 
> would not be destructors
> but finalizers. http://en.wikipedia.org/wiki/Finalizer
> 
> Joao
> -- 
> ==============================================================
> ================
> Dr Joćo Geada                                            CLK 
> Design Automation
> Chief Architect                                   295 Foster 
> Street, Suite 102
> 978-486 1056 x204                                          
> Littleton, MA 01460
> ==============================================================
> ================
> 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Jan 10 23:25:33 2007

This archive was generated by hypermail 2.1.8 : Wed Jan 10 2007 - 23:26:05 PST