[nem-en] default parameter value

Ivan A Eryshov ivan.eryshov at gmail.com
Sat Mar 10 15:03:00 CET 2007


Why this code not compiles?

<nemerle>

module A

{

  Test([Optional, DefaultParameterValue(10)] p : int) : void

  {

    System.Console.WriteLine(p);

  }

  Main () : void

  {

    Test(); // wrong number of parameters in call, needed 1, got 0

  }

}

</nemerle>

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20070310/9968a074/attachment.html


More information about the devel-en mailing list