This could be considered for the next PAR. 1800-2009 is closed for such changes. So the earliest this would be introduced would likely be 2012 or so. This would be syntactically identical to the copying constructor and I might object to that since it might be fairly confusing. I'm not going to take a position at this point. Gord Daniel Mlynek wrote: > There is one annoying thing in object contruction syntax in SV - there > is no neat and nice way to create an object of user choosen type and > assign it to handle of different (compatybile type) - consider: > > class B; > endclass > class C extends B; > endclass > > C c; > B b; > > initial begin > c=new; > b=c; //I have to write 2 lines of code to create and assign object > of child type to handle of base type > //my proposal is to accept syntax: new <class_type_identifier> - which > always creates an object of pointed type and returns handle to it > b = new C; > end > > I haven't found mantis on it and I cannot see any obsticles to add it to > LRM. I've think that this is very usefull - so please consider adding > such feature. > > > DANiel > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is > believed to be clean. -- -------------------------------------------------------------------- Gordon Vreugdenhil 503-685-0808 Model Technology (Mentor Graphics) gordonv@model.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Fri Sep 5 07:46:53 2008
This archive was generated by hypermail 2.1.8 : Fri Sep 05 2008 - 07:47:34 PDT