Mercurial > projects > dstress
view run/v/variadic_argument_12_A.d @ 859:1c98e13430f1
Fredrik Olsson <peylow@treyst.se>
2006-01-26
news:drakns$15ot$2@digitaldaemon.com
author | thomask |
---|---|
date | Fri, 24 Feb 2006 07:25:43 +0000 |
parents | |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Fredrik Olsson <peylow@treyst.se> // @date@ 2006-01-26 // @uri@ news:drakns$15ot$2@digitaldaemon.com module dstress.run.v.variadic_argument_12_A; class Foo { uint args; this(...) { args = _arguments.length; } } int main() { Foo foo = new Foo(1, 2, 3); if(foo.args == 3){ return 0; } }