MOO-cows Mailing List Archive


Re: exact name of a property

At 05:58 PM 4/18/96 -0400, Seth I. Rich wrote:
>>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

that works, if it's wiz-owned, I already had that in my $bf_property_info().
if it's an object that's not readable and the verb isn't wizardly, it bombs.

Home | Subject Index | Thread Index