-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
submethods' odd behaviour #76
Comments
So no, I think all of these behaviors are correct. |
In particular, submethods were never intended to be like private methods. They are intended to support things like BUILD, where every method in an inheritance hierarchy is called (so inheriting individual implementations of BUILD doesn't make sense), or for things like optimized constructors (for instance, we emulate this in Moose by generating a constructor that starts with We should have some tests for this behavior, though. |
Hmm, yeah, I think doy is right, at least as far as submethods are concerned. Lets keep this open so that we remember to write tests. |
Actually, submethods are basically (kinda sorta mostly) lexical subroutines and should (perhaps) be implemented as such. See http://rjbs.manxome.org/rubric/entry/2016 for more info, specifically this bit:
|
No, they aren't - the whole point is that they are callable from outside of the class, they just aren't inherited. |
Ah yes, you are right, I just saw the "does not participate in method dispatch" and my brain went off on a digression. Ignore my last comment. On Sep 26, 2013, at 12:25 AM, Jesse Luehrs notifications@github.com wrote:
|
Some or perhaps all of these might be wrong.
The text was updated successfully, but these errors were encountered: