I study defclassand defmethodand defgeneric, therefore, I did defclass, called savings-account, with the element balance.
I created defun(shown below) to start changing the balance value, but it is not complete.
(defun balance (account)
(slot-value account 'balance))
Then I decided to go with defgeneric(below).
(defgeneric balance (account))
But when I started defgeneric, I got this error:
BALANCE already calls a regular function or macro.
Is there a way to easily and easily turn off balance, so I don’t need to restart an Emacs session?
user2904561
source
share