From: Eric Mahurin Date: 2005-05-06T01:52:09+09:00 Subject: Re: object reference handle (like perl's reference to scalar) --- Florian Gro� wrote: > Eric Mahurin wrote: > > > Below is what I think is a general purpose solution to > making > > references. I provide several ways to do it. Here is an > > example: > > > > a = (0..5).to_a -> [0,1,2,3,4,5] > > w = ref{"a[2..4]"} # uses eval > > x = a.ref[2..4] # uses [] and []= methods > > y = a.ref("[]","[]=",2..4) # specify methods manually > > z = a.ref(["[]",2..4],["[]=",2..4]) # unique args to > get/set > > [...] > > This looks very interesting, if only from the toying > standpoint. Any > chance of you pushing this a bit with a RubyForge project and > a gem release? I just registered this under the name "reference". I also just registered 2 other things I'm doing "grammar", and "cursor". Hopefully it'll all be approved. This is my first try on rubyforge. I put my previous thing on RAA (called syntax) and am splitting it into "grammar" and "cursor". Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html