Skip to content

Instantly share code, notes, and snippets.

@alexnask
Created May 16, 2011 11:21
Show Gist options
  • Select an option

  • Save alexnask/974265 to your computer and use it in GitHub Desktop.

Select an option

Save alexnask/974265 to your computer and use it in GitHub Desktop.
test : func(args: ...) {
if(args count > 0) {
va := args iterator()
while(va hasNext?()) {
T := va getNextType()
if(T == Int) {
thingy := va next(T) as Int
thingy toString() println()
} else if (T == LLong) {
thingy := va next(T) as LLong
if(thingy == 42) "debug" println()
thingy toString() println()
}
}
}
}
test(42 as Int, 42 as LLong)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment