[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: object reference handle (like perl's reference to scalar

Eric Mahurin

5/5/2005 4:52:00 PM

--- Florian Gro? <florgro@gmail.com> 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/mai...



2 Answers

Tom Copeland

5/5/2005 4:58:00 PM

0

On Fri, 2005-05-06 at 01:52 +0900, Eric Mahurin wrote:
> Hopefully it'll all be approved.

Yup, all three should be good to go.

Yours,

Tom




dblack

5/5/2005 5:10:00 PM

0