TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote:


Then, since classes are open, the programmer can easily say

  CGI does CGI::Simple;

That would be

 class CGI is also { does CGI::Simple }

and means that CGI::Simple is a role, meant to serve as an interface specification. It's not, it is a whole class that works on its own. Also the direction is backwards. It won't let you pass the CGI::Simple to the function expecting a CGI.

A syntax is needed for this express concept: "accept B as a substitute for A", without changing A.

--John


Reply via email to