Created
January 7, 2016 23:23
-
-
Save harlanhaskins/65c92dae2ed782ea1174 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func main() { | |
var z = 0 | |
func goto(label: String) { | |
switch label { | |
case "start": | |
goto("cond") | |
case "cond": | |
if z == 5 { | |
goto("end") | |
} else { | |
goto("body") | |
} | |
case "body": | |
z += 1 | |
goto("cond") | |
case "end": break | |
default: break | |
} | |
} | |
goto("start") | |
print(z) | |
} | |
main() |
repl.swift:1:1: error: expected expression
#define goto report_to_your_supervisor_for_a_reeducation_through_labor
^
No preprocessor here!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
define goto report_to_your_supervisor_for_a_reeducation_through_labor