static new ThreadLocal dm_gazelle_addRuleWithComment_msg; // returns (ruleID, isNew) static Pair dm_gazelle_addRuleWithComment(S text, S comment) { Pair p = cast quickImport(dm_call(dm_gazelle_rulesModule(), 'addRuleWithComment, text, comment)); infoBox(setTLAndReturn(dm_gazelle_addRuleWithComment_msg, p.b ? "Rule " + p.a + " added" : "Rule already there: " + p.a)); ret p; } static Pair dm_gazelle_addRuleWithComment(S when, S then, S comment) { ret dm_gazelle_addRuleWithComment(when + "\n=> " + then, comment); }