On Thu, 23 Aug 2001, Albert Wagner wrote:

> Cool!  I could use that.

Very cool indeed.  I hope we also have

def fred :around
  puts "1"
  super
  puts "2"
end

This would make the AspectR project wonderfully redundant.

> On Wednesday 22 August 2001 20:16, you wrote:
> <snip>
> > But I think your proposal is interesting.  I was going to accomplish
> > it (if I do), by using method combination ala CLOS.
> >
> > Note it's just an idea, syntax is not fixed:
> >
> >   module WrapFred
> >     def fred :before
> >       puts "1"
> >     end
> >     def fred :after
> >       puts "2"
> >     end
> >   end
> >
> >   include WrapFred
> >
> >   def fred
> >     puts "hello"
> >   end
> >
> > will print
> >
> >   1
> >   hello
> >   2
> > 							matz.
>