Method code for $directories.parse_default_page()

[Turn on line numbering]
arg value, @args;
var object;

catch ~objnf, ~namenf, ~invdbref {
    object = $object_lib.to_dbref(value);
    if (object.is($page))
        return object;
} with {
    throw(~check, "default-page must be a valid descendant of $page.");
}
throw(~check, "default-page must be a valid descendant of $page.");

// Brad Roberts
// Bruce Mitchener, Jr.
// Created 16-May-1997 as a part of ColdCore, see: @help Credit

Tlon