[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:02298] Re: DBC

From: Andrew Hunt <andy@...>
Date: 2000-03-31 14:15:33 UTC
List: ruby-talk #2298
> I thought of some elaborate hare-brained Rube Goldberg
> device whereby a method is aliased and renamed or
> whatever, so that when you call the "bare" method
> foobar, you really end up calling meta_foobar, which
> calls pre, then foobar, then post. 

My Rube-Goldberg attempt used tracefunc to hook into the dispatcher,
so that I could check every method call and see if a pre/post condition
existed and then call it.  This also gave me the opportunity to call
invariant on exit from every method call.

/\ndy


In This Thread