MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Re: exact name of a property



>Is there a way to get the exact name of a property? I know property matching
>doesn't matter about the case, but I'm looking for a way to get the exact
>name that was on the property. 

Gather 'round while Seth violates the Prime Directive and posts without
verifying that the code works:

  to find the real name of 'prop' on object 'o' try
    properties(o)[prop in properties(o)]
  (which could be optimized)

Seth / Bb
----------------------------------------------------------------------
Seth I. Rich - sir@po.cwru.edu
                                 There is nothing more precious than
Rabbits on walls, no problem.    a tear of true repentance.



Home | Subject Index | Thread Index