Skip to content

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

Closed
@brandy125

Description

@brandy125

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions