Why not?
Ellery Newcomer
ellery-newcomer at utulsa.edu
Sun Nov 29 07:03:17 PST 2009
On 11/29/2009 03:45 AM, Matti Niemenmaa wrote:
>
> This feature already exists, you just need to declare append and foo a
> bit differently:
>
> public Foo append(Foo obj...) {}
> void foo(Foo obj...) {}
You're supposed to assume that obj is allocated on the stack, though,
which requires you to make a copy of it if you want to use it later,
which obviates the point of the syntax. I haven't found this feature to
be useful.
More information about the Digitalmars-d
mailing list