mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 07:33:01 +00:00 
			
		
		
		
	C-style
This commit is contained in:
		| @@ -494,13 +494,13 @@ | |||||||
|       (error (string "unexpected loop verb " verb))))) |       (error (string "unexpected loop verb " verb))))) | ||||||
|  |  | ||||||
| (defmacro forv | (defmacro forv | ||||||
|   `Do a c style for loop for side effects. The iteration variable i |   `Do a C-style for loop for side effects. The iteration variable i | ||||||
|   can be mutated in the loop, unlike normal for. Returns nil.` |   can be mutated in the loop, unlike normal for. Returns nil.` | ||||||
|   [i start stop & body] |   [i start stop & body] | ||||||
|   (for-var-template i start stop 1 < + body)) |   (for-var-template i start stop 1 < + body)) | ||||||
|  |  | ||||||
| (defmacro for | (defmacro for | ||||||
|   "Do a c style for loop for side effects. Returns nil." |   "Do a C-style for loop for side effects. Returns nil." | ||||||
|   [i start stop & body] |   [i start stop & body] | ||||||
|   (for-template i start stop 1 < + body)) |   (for-template i start stop 1 < + body)) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John Gabriele
					John Gabriele