Differences From Artifact [0eae6cc37f045c97]:
- File
tricks/tricks.d
- 2010-11-20 09:20:03 - part of checkin [515502e8d1] on branch trunk - table get, init, ask expressions addded (user: kinaba) [annotate]
To Artifact [004818c087feff6a]:
- File
tricks/tricks.d
- 2010-11-23 07:42:13 - part of checkin [6ac127ddd0] on branch trunk - new evaluator (user: kinaba) [annotate]
388 388 ), 6);
389 389 assert_eq( d2.match(
390 390 when!(D1, (x, y){return x + cast(int)y;}),
391 391 otherwise!({return 999;}),
392 392 when!(D2, (x){return x.length;})
393 393 ), 999);
394 394 }
395 +
396 +/// Will be used for dynamic overload resolution pattern
397 +
398 +template firstParam(T)
399 +{
400 + alias ParameterTypeTuple!(T)[0] firstParam;
401 +}