Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve beacon to check for non-optional function arguments when adding a callback #56

Open
alex-eg opened this issue Jan 9, 2020 · 0 comments

Comments

@alex-eg
Copy link
Member

alex-eg commented Jan 9, 2020

On first callback add, beacon should store function signature and check subsequent callbacks for conformance.

Also the check should be performed on attempting to blink.

For signature extraction, the sb-introspect:function-lambda-list function should be used:

CL-USER> (defun foo (a b c &optional g)
           (if g (+ a b c g) (+ a b c)))
FOO
CL-USER> (sb-introspect:function-lambda-list #'foo)
(A B C &OPTIONAL G)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant