[EMAIL PROTECTED] writes:
: ]- I can't remember but i think I read somewhere or it was discussed here (can't
:remember), but I think it was mentioned that Perl6 will have PRE and POST method/sub
:handlers probably specified as attribute, so that (syntax may be wrong):
:
: class XXX {
: method blah is PRE {}
: method blah {}
: method blah is POST {}
: }
:
: is ok.. not sure about the FALSE-condition that prohnobit the blah-method-call ?
Might just be a PRE and POST block within the method blah.
: One more thing I was wondering would it be possible to define a method/sub with
:different signatures but with the same name ? ( i think yes, ?Class::Multimethods?!
:was doing that aren't it ?)
I'm intending to allow overloading to the extent that the type system
supports it. I foresee that the main difficulty will be knowing the
the types on the caller end, not on the definition end.
: PS. One thing just pooped to me... is the "class { }" a block so that we can do all
:block mumbo-jumbo with it :")
Well, sure, but it probably only executes inline with the surrounding
code, just as any module initialization code does in Perl 5. I don't
think it's a BEGIN variant.
Larry