Re: [Ecls-list] porting to ecl question: lambda lists are not congruent
Daniel Kochmański jackdan...@hellsgate.pl writes: Hello, problem is that you define two methods #'build-hmeq, where parameter lists are not congruent. Quick fix is to def generic method inbefore like this: (defgeneric build-hmeq (keyword lrdct key allow-other-keys) (:documentation xyz)) apparently tested lisp implementations make generic with allow-other-keys automatically. Moreover, this is a bug in ECL, the generic function created through a DEFMETHOD with key should have no key arguments, just key. -- With best regards, Stas. -- ___ Ecls-list mailing list Ecls-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ecls-list
Re: [Ecls-list] porting to ecl question: lambda lists are not congruent
Daniel Kochmański jackdan...@hellsgate.pl writes: Hello, problem is that you define two methods #'build-hmeq, where parameter lists are not congruent. Quick fix is to def generic method inbefore like this: (defgeneric build-hmeq (keyword lrdct key allow-other-keys) (:documentation xyz)) apparently tested lisp implementations make generic with allow-other-keys automatically. There should be no allow-other-keys, just key in the defgeneric, which will allow all the keys specified by the methods. allow-other-keys will allow any keys. -- With best regards, Stas. -- ___ Ecls-list mailing list Ecls-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ecls-list