[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: How can I output an object/variable's name?

seebs

5/6/2007 11:56:00 AM

In message <C2DEFA07-FACE-48EB-981E-CAC197536D04@gmail.com>, John Joyce writes:
>Well, exactly all I want to do is to be able to take a set of
>objects, and then list them by the name or reference (the one used in
>program code) then list them and their contents. I don't really need
>to do it. I just was kind of wondering if it was really possible or
>practical, but it seems to not be.

I don't think it is, in general. Not every object has any names at all,
and some objects have multiple names. That's not even dealing with scoping...

-s