Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: OOP: Plugin Style Development

by dpuu (Chaplain)
on Jul 22, 2002 at 19:22 UTC ( #184189=note: print w/replies, xml ) Need Help??


in reply to OOP: Plugin Style Development

Perl doesn't do interface checking at compile time; so if you wanted to check it, you'd have to write your own checking code:
package Foo; use base 'Bar'; my @missing_methods = grep { ! Foo->can($_) } qw(foo bar baz); if (@missing_methods) { die "missing methods: @missing_methods"; } ...
--Dave.

Replies are listed 'Best First'.
Re: Re: OOP: Plugin Style Development
by lachoy (Parson) on Jul 22, 2002 at 21:30 UTC

    FWIW, the recent release of interface to CPAN might help with this compile-time checking.

    Chris
    M-x auto-bs-mode

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://184189]
help
Chatterbox?
[Tux]: so, another app with gtk GUI had something similar, but it defined the IM_MODULE(s) as cedilla.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2017-09-25 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (291 votes). Check out past polls.

    Notices?