http://qs321.pair.com?node_id=281158


in reply to Re6: Aspect-Oriented Programming: Couple of Short Examples
in thread Aspect-Oriented Programming: Couple of Short Examples

I believe Perl6 will provide for this seamlessly with wrappers. From what I understand, you'll be able to wrap a function call with any arbitrary code and henceforth (in the scope the wrapper lives in?) any call to that function will actually call the wrapper, which can do anything you want. See the .wrap subsection of Apocalypse 6, which even specifically mentions Aspect Oriented Programming.

kelan


Perl6 Grammar Student

  • Comment on Re: Re6: Aspect-Oriented Programming: Couple of Short Examples