remcollier / astra

This repository is no longer maintained. For more information on ASTRA, please visit http://astralanguage.com
http://astralanguage.com
5 stars 0 forks source link

-+ operator does not work where removed belief is same as added belief #12

Open remcollier opened 7 years ago

remcollier commented 7 years ago

The following program fails silently on the -+test... line

agent Test {
    types test {
        formula test(string);
    }

    initial test("happy");

    rule +!main(list args) {
        -+test("happy");
    }
}
remcollier commented 7 years ago

Added a check so that, in the case where a belief being removed matches the belief being added, the belief is not removed.