* Use default values of job function arguments if they're not

[?]
May 3, 2011, 9:21 AM
WWEGP5ETEZAQUVNFG6RQIWEJ7TVQ7OCSYJAYLABRXZ4QYKSPBLSAC

Dependencies

  • [2] AEKIREIH * Updated hydra_eval_jobs for the new evaluator.
  • [3] KD5237CU * eval-jobs now efficiently evaluates all Hydra jobs from a
  • [4] 7YCFGMZB * Report evaluation errors per job, and don't bail out if a job fails
  • [5] AEFNBIIW * Merge the GC branch.
  • [6] POPU2ATH * hydra_scheduler: use eval-jobs.
  • [7] HOVPJBFF * Require every argument to be specified.
  • [*] 4N5APGRG * Start of a helper tool to evaluate job expressions efficiently.

Change contents

  • edit in src/c/hydra_eval_jobs.cc at line 51
    [3.470]
    [3.470]
    Formals::Formals_::iterator next = cur; ++next;
  • replacement in src/c/hydra_eval_jobs.cc at line 56
    [2.685][2.685:714](),[2.714][3.0:77](),[3.1306][3.0:77](),[3.77][2.715:805]()
    if (a == argsLeft.end())
    throw TypeError(format("job `%1%' requires an argument named `%2%'")
    % attrPath % cur->name);
    Formals::Formals_::iterator next = cur; ++next;
    [2.685]
    [2.805]
    if (a == argsLeft.end()) {
    if (!cur->def)
    throw TypeError(format("job `%1%' requires an argument named `%2%'")
    % attrPath % cur->name);
    tryJobAlts(state, doc, argsUsed, argsLeft, attrPath, fun, next, last, actualArgs);
    return;
    }