marcoheisig / fast-generic-functions

Seal your generic functions for an extra boost in performance.
MIT License
94 stars 5 forks source link

return-from does not work with f-g-f #5

Closed nneuss closed 4 years ago

nneuss commented 4 years ago

Hi Marco,

I am just trying to make Femlisp use fast-generic-functions which really looks promising (thank you for your very helpful last email, BTW).

Trying this I have observed that return-from does not work with f-g-f's, e.g. the following throws an error:

(defgeneric generic-find (item sequence &key test) (:generic-function-class fast-generic-functions:fast-generic-function))

(defmethod generic-find (item (list list) &key (test #'eql)) (return-from generic-find t))

Best regards,

Nico

nneuss commented 4 years ago

Addendum: The error is "return for unknown block: GENERIC-FIND".

nneuss commented 4 years ago

Sorry for the noise. The problem vanished when I updated the library (my version was from March!).