fix arity check for applicable structs
authorAndy Wingo <wingo@pobox.com>
Mon, 21 May 2012 16:06:34 +0000 (18:06 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 21 May 2012 16:06:34 +0000 (18:06 +0200)
commit15bb587f45b718f08756993fec9274212cc7df58
tree82ab2fe92b73629c332ce8e324086996a4448f7f
parent6ccc66789695b5a09ce9b16c8c121f521df296e6
fix arity check for applicable structs

* module/language/tree-il/analyze.scm (validate-arity): Fix for
  applicable structs.  Applicable structs are procedures, but not every
  struct has a first slot, and not every struct with a procedure in its
  first slot is applicable.  Besides, the approach in this patch gives
  better errors.
module/language/tree-il/analyze.scm