develooper Front page | perl.perl6.users | Postings from May 2014

Does perl have ensue override?

Thread Next
From:
Kamil Kułaga
Date:
May 15, 2014 17:48
Subject:
Does perl have ensue override?
Message ID:
CA+pwmbxo5AOo1WvAwrSRfyNRnkFGmmM41mCMRiEaYSev7awiTg@mail.gmail.com
Hi,

Is there any ordinary way (not something like getting list of methods
from base class) to ensure we are overriding method?

Java has @Override annotation that that causes compilation error if
method is not necessary for Interface(Role). It is very handy if class
does many of them and someone cuts out deprecated method and there is
no reason to implement them any longer.

-- 
Pozdrawiam

Kamil Kułaga

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About