develooper Front page | perl.perl6.language | Postings from May 2008

Re: First look: Advanced Polymorphism whitepaper

Thread Previous | Thread Next
From:
Daniel Ruoso
Date:
May 2, 2008 15:30
Subject:
Re: First look: Advanced Polymorphism whitepaper

Sex, 2008-05-02 às 09:08 -0500, John M. Dlugosz escreveu:
> A syntax is needed for this express concept:  "accept B as a substitute 
> for A", without changing A.

Which I'm advocating as....

   class CGI::Simple realises CGI { ... }

or

   CGI::Simple is also { realises CGI }

or even...

   $cgi_simple realises CGI;

daniel




Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About