Skip to content

compilation error when program contains for-loop with begin and endfor in one line #1608

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

Closed
brandy125 opened this issue Jul 24, 2023 · 2 comments

Comments

@brandy125
Copy link

I thought this was solved already but I am not sure any more.

This simple program does not compile any more:

pro test
   for i=0,5 do begin print,i & endfor
end

It only compiles when there is a "&" after the "begin":

pro test
   for i=0,5 do begin & print,i & endfor
end

or when the commands are in different lines:

pro test
   for i=0,5 do begin 
      print,i
   endfor
end
@GillesDuvert
Copy link
Contributor

@brandy125 I'm afraid its a consequence of #1588 as reported in #1599 . Will be solved, even if it means reverting to previous behaviour.

@brandy125
Copy link
Author

brandy125 commented Aug 2, 2023 via email

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

2 participants