[nem-en] default parameter value
Kamil Skalski
kamil.skalski at gmail.com
Sat Mar 10 15:36:31 CET 2007
Such attributes are interpreted only when loading external libraries.
For compile-time code compiler uses its own information basing on
presence of
foo (x = bar) { }
construct
2007/3/10, Ivan A Eryshov <ivan.eryshov at gmail.com>:
>
>
>
>
> 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>
>
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
>
--
Kamil Skalski
http://nazgul.omega.pl
More information about the devel-en
mailing list