Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scheme代码中含有;注释行的时候会陷入死循环 #3

Open
insionng opened this issue Mar 6, 2016 · 0 comments
Open

scheme代码中含有;注释行的时候会陷入死循环 #3

insionng opened this issue Mar 6, 2016 · 0 comments

Comments

@insionng
Copy link

insionng commented Mar 6, 2016

(define (func x)  
    (if (and  
            (or  
                (and (> x 10) (< x 20))  
                (and (< x -10) (> x -20))  
            )  
            (and (not (= x 15)) (not (= x -15)))  
        )  
        10000  
        -10000  
    )  
)  
;Value: func  
(func 11)  
;Value: 10000  
(func 20)  
;Value: -10000  
(func -11)  
;Value: 10000  
(func 15)  
;Value: -10000  
(func -15)  
;Value: -10000  

以上代码带注释的时候无法执行,去掉所有注释之后就正常了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant