xxxxxxxxxx
import std;
pure int foo( int n )
{
debug writeln( "n = ", n ); // valid if the -debug option is used
// writeln( "n = ", n ); // Error: pure function cannot call impure function
return n * 2;
}
void main()
{
writeln( "foo = ", foo( 100 ) );
}