[sv-ec] 7.7 Constructors - restriction on constructor calls

From: danielm <danielm_at_.....>
Date: Wed Apr 09 2008 - 03:19:28 PDT
IMHO there is lack of restriction on that constructor cannot be explicitly
called :

- in class method, 

- via scope operator <BASE_CLASS>::new, 

- throught class handle C c; initial c.new;

The only possibility is to call it via super.new (with all restriction
described in chining constructor chapter). Or in class handle
initialization, assignment.

 

Current text is not so clear so smdb may try:

class C extends B;
    function new();
        B::new;
        B::new;
    endfunction
endclass

 

DANiel


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Apr 9 03:20:10 2008

This archive was generated by hypermail 2.1.8 : Wed Apr 09 2008 - 03:20:29 PDT