dollabs / pamela

Probabalistic Advanced Modeling and Execution Learning Architecture
Apache License 2.0
233 stars 13 forks source link

Incorrect arity of pclass-ctor call should error/warn at `build` #190

Closed dcerys closed 5 years ago

dcerys commented 5 years ago

The following will build without any indication that (finger 1) is incorrect given the 0-arg pclass constructor. Note that an error is generated during an htn action. But this is a simple static check that should be done at build.

(defpclass finger []
  :fields {foo 3})

(defpclass hand []
  :fields {finger1 (finger 1)
           }
  :methods [(defpmethod main []
              )])