(setf fdefinition) must disallow macro-function as new-val

Bug #1439921 reported by Douglas Katzman on 2015-04-03
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

CLHS says, in the last sentence under FDEFINITION:
"It is an error to set the fdefinition of a function-name to a symbol, a list, or the value returned by fdefinition on the name of a macro or special form."

e.g. (setf (fdefinition 'bork) (fdefinition 'and)) should fail
as should (setf (fdefinition 'bork) (fdefinition 'if))

Douglas Katzman (dougk) wrote :
Changed in sbcl:
status: New → Fix Committed
Stas Boukarev (stassats) on 2015-04-27
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers