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

바깥 구현 버그 #40

Open
Qwaz opened this issue Jan 6, 2016 · 1 comment
Open

바깥 구현 버그 #40

Qwaz opened this issue Jan 6, 2016 · 1 comment

Comments

@Qwaz
Copy link
Contributor

Qwaz commented Jan 6, 2016

약속 (음료) 마시기
    음식: "냠냠"
    바깥 음식
    음식: "밥"
function ys_1__음료_마시기(음료) {
    var 결과;
    var 음식 = "냠냠";
    // nonlocal 음식
    음식 = "밥";
    return 결과;
 }

두 번째 음식 변수 접근에 nonlocal이 적용되지 않습니다. Python에서는 이런 경우 warning을 띄우지만 정상적으로 두 번째 접근에 대해서 nonlocal로 작동하기는 합니다.

@disjukr
Copy link
Member

disjukr commented Jan 6, 2016

일단 귀찮으니 그런 경우에 컴파일 에러를 내는 쪽으로 구현하겠습니다.

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

No branches or pull requests

2 participants