in reply to Re: compiletime checking of valid method calls
in thread compiletime checking of valid method calls

> What if the code adds new subroutines at runtime?

My objective is to be better than the export constant solutions.

And I'm only seeing this "solution" activated in the test/dev phase.*

So if a method is added at runtime it would need to be "pre-registered" at compile time, much like a constant would need to be declared at compile time.³

We don't add methods at compile time, and our "use" of OO is probably best described as weird QQ.²

DISCLAIMER: I can't choose my colleagues and bosses and I don't have any alternative workplaces at disposal yet.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

*) in other words it's not weirder than using PPI for this in a .t test.

²) My colleagues don't know how to add methods at compile time yet.

³) or checking would be deactivated by omitting the type information.

  • Comment on Re^2: compiletime checking of valid method calls