MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Another suggestion for a built-in...
Well, I guess this probably won't make it into the 1.8.0 beta, but it'd be
useful if there was a built-in that would return a list of all variables
defined in the current verb, along with their values. I'd like to be able
to do something like:
if (<some expression that should never be true>)
this:send_warning(variable_dump());
endif
in a few places in my code, and then make a :send_warning verb that will mail
me the callers() stack along with a readable form of the variable dump.
Maybe you could also make a built-in that will return the variable dump for
each verb in the callers() stack? But that one might have to be
restricted for non-wizards because some verbs might store !r property values
or other information in a variable, assuming no other verbs can read it.
Well, this idea just came to me while I was debugging my code, anyone have
any other suggestions?
*****************************************************************************
* Don Schwarz <darkowl@mcs.net> * PGP fingerprint: *
* http://www.mcs.net/~darkowl * 6E 3E B9 38 CC C2 CA CD *
* -->Come to EnigMOO (junior.wariat.org 7777)<-- * 4A ED 48 66 27 FA 1C 37 *
* Dark_Wiz @ EnigMOO, ForestMOO, MOOnShine ***************************
* Dark_Owl @ everymoo "The mice will see you now." --HHGTTG *
*****************************************************************************
Home |
Subject Index |
Thread Index