forked from vedderb/bldc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'lispBM/lispBM/' changes from 95368f36..c9034e4a
c9034e4a fix bug related to incremental read-eval-program 018cc540 added one more const_array sharing test git-subtree-dir: lispBM/lispBM git-subtree-split: c9034e4aed0bb437c90c8e8d5dab14e7d6c14ab3
- Loading branch information
Showing
5 changed files
with
45 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
|
||
(define fred (lambda () | ||
(progn (print "fred iteration" \#newline ) | ||
(recv ((apa (? x)) (print "fred received: " x \#newline))) | ||
(progn (print "fred iteration\n" ) | ||
(recv ((apa (? x)) (print "fred received: " x "\n"))) | ||
(fred)))) | ||
|
||
(define bella (lambda (pid x) | ||
(progn (print "bella iteration " x \#newline) | ||
(progn (print "bella iteration " x "\n") | ||
(send pid '(bepa ,x)) | ||
(yield 50000) | ||
(bella pid (+ x 1))))) | ||
|
||
(define fredpid (spawn '(fred))) | ||
(define fredpid (spawn fred)) | ||
|
||
(spawn '(bella (car fredpid) 0)) | ||
(spawn bella (car fredpid) 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
(def a (const-prg)) | ||
|
||
(check (= (eval (read (const-prg))) 10)) |