22 Jun
2009
22 Jun
'09
7:44 p.m.
Bozelos Dimitris wrote:
Hello everyone!
Hi :-)
1) can default values be passed to a function? I've tried all of
fun void test( int i = 0) fun void test( 0 => int i) fun void test( int i => 0)
You could try (if I understand what you're trying to achieve): test(); //using default of 0 test(4); // using a value of 4 fun void test(){ test(0); } fun void test(int i){ //do the actual stuff with i } -- Atte http://atte.dk http://modlys.dk http://virb.com/atte