[sv-ec] copy constructor on handle pointing null

From: Daniel Mlynek <daniel.mlynek_at_.....>
Date: Wed Aug 27 2008 - 00:48:29 PDT
LRM doesn't describe what should happend if handle which we are trying to
copy is equal null like in sample below. Should it trigger runtime error
that this is illegall null refrence, or should it silently assign
destination hadle with null ( performing no allocation)?
 
module top; 
 class C;
  int a;
 endclass 
 C c1,c2 ;
 initial begin
     c1 = new c2;    
 end
endmodule
 
 
 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Aug 27 00:49:12 2008

This archive was generated by hypermail 2.1.8 : Wed Aug 27 2008 - 00:49:54 PDT