Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
70421e9b
Unverified
Commit
70421e9b
authored
Jun 20, 2018
by
Evan W. Patton
Committed by
Jeffrey I. Schiller
Jun 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around break block issues in Kawa
Fixes #1230 Change-Id: I1eb4579f4873d2e60b357acd463dbbd77261c936
parent
6aa70536
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
appinventor/buildserver/src/com/google/appinventor/buildserver/resources/runtime.scm
.../com/google/appinventor/buildserver/resources/runtime.scm
+12
-2
No files found.
appinventor/buildserver/src/com/google/appinventor/buildserver/resources/runtime.scm
View file @
70421e9b
...
...
@@ -806,8 +806,18 @@
(
let
*yail-loop*
()
(
if
,
condition
(
begin
(
begin
,
body
.
,
rest
)
(
*yail-loop*
))
;; Kawa attempts to be smart by detecting unreachable
;; code and reporting it as an error. This causes an
;; issue here if *yail-break* is determined to be always
;; called within body-form, since *yail-loop* will
;; unreachable. The mixing of `or` and `and` operators
;; below fools the Kawa optimizer so that even in
;; trivial cases it won't flag the call to *yail-loop*
;; as unreachable. It also works around a bug in the
;; tail-recursive optimizer that breaks when the while
;; loop is empty.
(
or
(
and
((
lambda
()
(
begin
,
body
.
,
rest
)))
#f
)
(
*yail-loop*
)))
#
!null
)))))
;; Below are hygienic versions of the forrange, foreach and while
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment