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
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: object reference handle (like perl's reference to scalar
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password