On Wed, Jun 14, 2006 at 08:02:43 +1000, James Crisp wrote: > Erik de Castro Lopo wrote: > > 4/ Ocaml lets you set a value based on the result of an if statment. > > > Ruby also lets you do this, as the 'if' statement is an expression. Eg,
You can do the same in C/C++: const int x = remainder > 2 ? 5 : 0; Cheers, John -- Conspiracies abound: If everyone's against you, the reason can't *possibly* be that you're a fuckhead. -- Joe Talmadge in The Flamer's Bible _______________________________________________ coders mailing list coders@slug.org.au http://lists.slug.org.au/listinfo/coders