Dave, > You can get what you want by creating a static method that call the > constructor ('new' is already a special static method). yes, I'd already spotted that; and it's a neat way to do it. But it does require me to write an (admittedly trivial) function in each new subclass. Agreed, though, about its flexibility w.r.t. constructor arguments. Thanks -- Jonathan Bromley, Consultant DOULOS - Developing Design Know-how VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, Hampshire, BH24 1AW, UK Tel: +44 (0)1425 471223 Email: jonathan.bromley@doulos.com Fax: +44 (0)1425 471573 Web: http://www.doulos.com The contents of this message may contain personal views which are not the views of Doulos Ltd., unless specifically stated. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Fri Aug 3 14:00:21 2007
This archive was generated by hypermail 2.1.8 : Fri Aug 03 2007 - 14:01:01 PDT