opDispatch(string name, E...) (E e) question.

2012-03-25 Thread bls
How do I call opDispatch(string name, E...)(E elements) ? What I want to archive is to call f.i. fm.list with an arbitrary number of arguments without using fm.list(1, abc, 4L, 3.33); Instead I would prefer fm.list = (1, abc, 4L, 3.33); Is this somehow possible ? import std.variant; import

Re: opDispatch(string name, E...) (E e) question.

2012-03-25 Thread James Miller
On 26 March 2012 09:45, bls bizp...@orange.fr wrote: How do I call opDispatch(string name, E...)(E elements) ? What I want to archive is to call f.i. fm.list with an arbitrary number of arguments without using fm.list(1, abc, 4L, 3.33); Instead I would prefer fm.list = (1, abc, 4L, 3.33);

Re: opDispatch(string name, E...) (E e) question.

2012-03-25 Thread bls
On 03/25/2012 02:04 PM, James Miller wrote: On 26 March 2012 09:45, blsbizp...@orange.fr wrote: How do I call opDispatch(string name, E...)(E elements) ? What I want to archive is to call f.i. fm.list with an arbitrary number of arguments without using fm.list(1, abc, 4L, 3.33); Instead I

Re: opDispatch(string name, E...) (E e) question.

2012-03-25 Thread James Miller
On 26 March 2012 10:34, bls bizp...@orange.fr wrote: (T) (T[] t) AND (T) (T t) seems not to work. Ok, so looking here: http://dlang.org/function.html, I have determined that, if you are using Variant arrays (though I'm not sure if you can do that using literals...) you can use the syntax from

Re: opDispatch(string name, E...) (E e) question.

2012-03-25 Thread bls
On 03/25/2012 02:59 PM, James Miller wrote: Ok, so looking here:http://dlang.org/function.html, I have determined that, if you are using Variant arrays (though I'm not sure if you can do that using literals...) you can use the syntax from this example: Thanks James.. will give it tomorrow a

Re: opDispatch(string name, E...) (E e) question.

2012-03-25 Thread Artur Skawina
On 03/25/12 22:45, bls wrote: How do I call opDispatch(string name, E...)(E elements) ? What I want to archive is to call f.i. fm.list with an arbitrary number of arguments without using fm.list(1, abc, 4L, 3.33); Instead I would prefer fm.list = (1, abc, 4L, 3.33); Is this somehow

Re: opDispatch(string name, E...) (E e) question.

2012-03-25 Thread bls
Thanks Artur, On 03/25/2012 03:18 PM, Artur Skawina wrote: On 03/25/12 22:45, bls wrote: How do I call opDispatch(string name, E...)(E elements) ? What I want to archive is to call f.i. fm.list with an arbitrary number of arguments without using fm.list(1, abc, 4L, 3.33); Instead I would

Re: opDispatch(string name, E...) (E e) question.

2012-03-25 Thread Simen Kjærås
On Sun, 25 Mar 2012 22:45:57 +0200, bls bizp...@orange.fr wrote: How do I call opDispatch(string name, E...)(E elements) ? What I want to archive is to call f.i. fm.list with an arbitrary number of arguments without using fm.list(1, abc, 4L, 3.33); Instead I would prefer fm.list = (1, abc,

Re: opDispatch(string name, E...) (E e) question.

2012-03-25 Thread Artur Skawina
On 03/26/12 00:58, bls wrote: Thanks Artur, On 03/25/2012 03:18 PM, Artur Skawina wrote: On 03/25/12 22:45, bls wrote: How do I call opDispatch(string name, E...)(E elements) ? What I want to archive is to call f.i. fm.list with an arbitrary number of arguments without using fm.list(1,