От: | hardcase | http://nemerle.org | |
Дата: | 06.12.10 23:02 | ||
Оценка: |
H>using Snippets;
H>...
H>def x = Body with { Hands = 2 };
H>
using Snippets;
...
def x = Body() with { Hands = 2 };
def x = Body() with { Hands = 2; Legs = 2; };
def x = Body() with ( Hands = 2, Legs = 2 );
def bar = with(Bar())
{
Hands = 2;
Legs = 2;
Other = with(Foo()) { X = 10; Y = 20 }
}