view code/test.lm @ 69:8a0f1447c034

Implement plain if in gqc and use it in ghost0. This provides a small improvement in code size
author Michael Pavone <pavone@retrodev.com>
date Sun, 27 Jul 2014 23:19:23 -0700
parents 494ef2e3a756
children
line wrap: on
line source

#{
	step <- :myState :world {
		foo <- 1234
		if: (isInteger?: 1 | [(2 + 32 * 8) 3 4]) {
			myState <- 42
		} else: {
			myState <- 24
		}
		#[myState 1]
	}
	
	main <- :initWorld mystery{
		#[0 step]
	}
}