Is there a way in SV to reference to class overriden member from outside the class (from inside the class it is easy one can use super or BAS_CLASS_NAME:: class c; int a = 111; endclass class d extends c; real a = 2.22; endclass program p; d D = new; initial begin $display( D.a ); //$display( D.c::a ); //<-- from here there is no way to reference to overriden member a - at least I do not know such way //$display( D.super.a ); // <-- from here there is no way to reference to overriden member a - at least I do not know such way end endprogram DANiel -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Wed Sep 23 02:53:05 2009
This archive was generated by hypermail 2.1.8 : Wed Sep 23 2009 - 02:53:51 PDT