Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
contextl
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
Container Registry
Model registry
Operate
Environments
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
closer
contextl
Commits
f34477a8
Commit
f34477a8
authored
19 years ago
by
Pascal Costanza
Browse files
Options
Downloads
Patches
Plain Diff
Replaced a few loops with calls to the new Closer to MOP utility function required-args.
darcs-hash:5a23dbc8fff86551cf265dd5ac656c17f205fa0d
parent
73cff6ad
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cx-layered-function.lisp
+3
-10
3 additions, 10 deletions
cx-layered-function.lisp
with
3 additions
and
10 deletions
cx-layered-function.lisp
+
3
−
10
View file @
f34477a8
...
...
@@ -53,9 +53,7 @@
,@
(
let
((
argument-precedence-order
(
assoc
:argument-precedence-order
options
)))
(
if
argument-precedence-order
(
cdr
argument-precedence-order
)
(
loop
for
arg
in
args
until
(
member
arg
lambda-list-keywords
)
collect
arg
)))
(
required-args
args
)))
,
layer-arg
)
,@
(
loop
for
option
in
(
remove
:argument-precedence-order
options
:key
#'
car
)
if
(
eq
(
car
option
)
:method
)
...
...
@@ -85,10 +83,7 @@
(
name
&rest
initargs
&key
(
lambda-list
()
lambda-list-p
)
(
argument-precedence-order
(
loop
for
arg
in
lambda-list
until
(
member
arg
lambda-list-keywords
)
collect
arg
))
(
argument-precedence-order
(
required-args
lambda-list
))
&allow-other-keys
)
(
declare
(
dynamic-extent
initargs
))
(
unless
lambda-list-p
...
...
@@ -123,9 +118,7 @@
(
in-layer
(
find-layer
't
))
(
qualifiers
())
(
lambda-list
(
cadr
lambda-expression
))
(
specializers
(
loop
for
arg
in
lambda-list
until
(
member
arg
lambda-list-keywords
)
collect
(
find-class
't
))))
(
specializers
(
required-args
lambda-list
(
constantly
(
find-class
't
)))))
(
let
((
layer-arg
(
gensym
"LAYER-ARG-"
)))
(
destructuring-bind
(
lambda
(
&rest
args
)
&body
body
)
...
...
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