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
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);
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
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
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
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
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
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,
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,