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
95b82936
Commit
95b82936
authored
21 years ago
by
toy
Browse files
Options
Downloads
Patches
Plain Diff
LOOP accepts NIL as the variable if arithmetic loops, such as
(loop for nil from 0 to 5 do (print "x"))
parent
fc4e2aca
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
code/loop.lisp
+2
-2
2 additions, 2 deletions
code/loop.lisp
with
2 additions
and
2 deletions
code/loop.lisp
+
2
−
2
View file @
95b82936
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
#+
cmu
#+
cmu
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/loop.lisp,v 1.2
3
200
3
/0
8/28 14:14:57 gerd
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/loop.lisp,v 1.2
4
200
4
/0
1/18 13:47:55 toy
Exp $"
)
;;;; LOOP Iteration Macro
;;;; LOOP Iteration Macro
...
@@ -1582,7 +1582,7 @@ collected result will be returned as the value of the LOOP."
...
@@ -1582,7 +1582,7 @@ collected result will be returned as the value of the LOOP."
;FOR variable keyword ..args..
;FOR variable keyword ..args..
(
defun
loop-do-for
()
(
defun
loop-do-for
()
(
let*
((
var
(
loop-pop-source
))
(
let*
((
var
(
or
(
loop-pop-source
)
(
loop-gentemp
'loop-do-for-anon-
))
)
(
data-type
(
loop-optional-type
var
))
(
data-type
(
loop-optional-type
var
))
(
keyword
(
loop-pop-source
))
(
keyword
(
loop-pop-source
))
(
first-arg
nil
)
(
first-arg
nil
)
...
...
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