From: Markus Date: 2004-10-02T04:05:25+09:00 Subject: Re: define_method, proc with block ? On Fri, 2004-10-01 at 11:22, trans. (T. Onoma) wrote: > Ah, thank you. Thank you. Yes, this first example is essentially what I'm > doing. I see from it that block parameters in Procs are taken care of in > 1.9+, I just need to update. Actually, if you &-ize it on the way in you should be fine in 1.8 (at least, it works transparently for me). > > or I (about half way down, search for "$observers") > > > > http://www.talkaboutprogramming.com/group/comp.lang.ruby/messages/107721.ht > >ml, suggested on this thread should do the trick. > > No aliasing for me thanks. But I am curious, is Symbol.uniq new to 1.9? Oops. Sorry, it's from my personal bag o'tricks (another ported lisp-ism): class Symbol @@unique_sym_counter = 0 def Symbol.unique(prefix="gloop") prefix = prefix.to_s. gsub(/\+/,'_plus_'). gsub(/\*/,'_times_'). gsub(/-/,'_minus_'). gsub(/\//,'_div_'). gsub(/\!/,'_bang_') return ("#{prefix.to_s}__#{@@unique_sym_counter += 1}").intern end end So, I'm curious right back: why the aversion to aliasing? -- MarkusQ