00001 void 00002 testBound(string name) 00003 { 00004 if (isbound(name)) 00005 printf("%s is bound\n", name); 00006 else 00007 printf("%s is not bound\n", name); 00008 } 00009 00010 cvex 00011 test( 00012 vector P=0; 00013 int unbound = 3; 00014 export float s=0; 00015 export vector Cf=0; 00016 ) 00017 { 00018 testBound("P"); 00019 testBound("unbound"); 00020 00021 printf("s=%g P=%g unbound=%d\n", s, P, unbound); 00022 Cf = noise(P*10); 00023 s *= 2; 00024 }
1.5.9