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

No user code before the first case in a switch statement #36

Open
Garados007 opened this issue Jul 28, 2023 · 0 comments
Open

No user code before the first case in a switch statement #36

Garados007 opened this issue Jul 28, 2023 · 0 comments

Comments

@Garados007
Copy link
Member

Igor Pro allows code before the first case in a switch statement but this code is never executed.

switch(i)
	print "this would never be executed", i
	case 1:
		print "one"
		break
endswitch

Similarly to #35, I would get rid of such code as it only confuses the reader.

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

No branches or pull requests

1 participant