[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Proc params extension

Tj Holowaychuk

1/16/2009 12:27:00 AM

Basically what I need is:

Proc.new { |a,b,c| }.params # => [:a, :b, :c]

I was looking into creating a C extension.. but yikes the closure
portion is far beyond my limited C skills (lack of). Any ideas? is this
even really possible with the way evaluation is performed?
--
Posted via http://www.ruby-....