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.

Reply via email to