Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
3887ffd4
Commit
3887ffd4
authored
26 years ago
by
pw
Browse files
Options
Downloads
Patches
Plain Diff
Remove an error check in real-remove-method prohibited by ANSI spec.
parent
3163b238
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pcl/methods.lisp
+18
-19
18 additions, 19 deletions
pcl/methods.lisp
with
18 additions
and
19 deletions
pcl/methods.lisp
+
18
−
19
View file @
3887ffd4
...
...
@@ -628,25 +628,24 @@
method
)))
(
defun
real-remove-method
(
generic-function
method
)
(
if
(
neq
generic-function
(
method-generic-function
method
))
(
error
"The method ~S is attached to the generic function~@
~S. It can't be removed from the generic function~@
to which it is not attached."
method
(
method-generic-function
method
))
(
let*
((
name
(
generic-function-name
generic-function
))
(
specializers
(
method-specializers
method
))
(
methods
(
generic-function-methods
generic-function
))
(
new-methods
(
remove
method
methods
)))
(
setf
(
method-generic-function
method
)
nil
)
(
setf
(
generic-function-methods
generic-function
)
new-methods
)
(
dolist
(
specializer
(
method-specializers
method
))
(
remove-direct-method
specializer
method
))
(
set-arg-info
generic-function
)
(
when
(
member
name
'
(
make-instance
default-initargs
allocate-instance
shared-initialize
initialize-instance
))
(
update-make-instance-function-table
(
type-class
(
car
specializers
))))
(
update-dfun
generic-function
)
generic-function
)))
;; Note: Error check prohibited by ANSI spec removed.
(
when
(
eq
generic-function
(
method-generic-function
method
))
(
let*
((
name
(
generic-function-name
generic-function
))
(
specializers
(
method-specializers
method
))
(
methods
(
generic-function-methods
generic-function
))
(
new-methods
(
remove
method
methods
)))
(
setf
(
method-generic-function
method
)
nil
)
(
setf
(
generic-function-methods
generic-function
)
new-methods
)
(
dolist
(
specializer
(
method-specializers
method
))
(
remove-direct-method
specializer
method
))
(
set-arg-info
generic-function
)
(
when
(
member
name
'
(
make-instance
default-initargs
allocate-instance
shared-initialize
initialize-instance
))
(
update-make-instance-function-table
(
type-class
(
car
specializers
))))
(
update-dfun
generic-function
)
generic-function
)))
(
defun
compute-applicable-methods-function
(
generic-function
arguments
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment