[chuck-users] a couple of questions

Atte Andre Jensen atte.jensen at gmail.com
Mon Jun 22 19:44:43 EDT 2009

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(){

fun void test(int i){
    //do the actual stuff with i


http://atte.dk   http://modlys.dk   http://virb.com/atte

More information about the chuck-users mailing list