Skip to content

No code outside of functions #35

@Garados007

Description

@Garados007

Igor ignores all invalid code outside of functions and doesn't report this. I have seen many code examples of function or operation calls outside of functions like this:

Function Test(string a)
    print a
End

Test("this is never executed")
print "this is also never executed"

Function Test2()
End

I would suggest getting rid of such invalid code outside of functions, as it is ignored by Igor and only confuses the reader.

I think this is a known issue for WM, but they can't fix it because it would have a too big impact on their compiler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions