Method code for $root.setting_definer()

[Turn on line numbering]
arg name;
var a;

for a in (ancestors()) {
    if (dict_contains(a.defined_settings(), name))
        return a;
}
throw(~setnf, "Setting \"" + name + "\" is not defined.");

["// Created as a part of ColdCore, see: @help Credit"]

the Cold Dark