> However, i donot know how to write pure function using C style. > func1 a = { > -- ...; > a * 2; > -- ...; > } What do you mean by "a * 2"? If you don't use this value, don't calculate it.