Re: Array Template

2017-12-18 Thread codephantom via Digitalmars-d-learn
On Saturday, 16 December 2017 at 14:14:28 UTC, Vino wrote: Yes, will give a try. From, Vino.B well, this sort of gets there ;-) // - module test; import std.stdio; import std.variant; import std.typecons; import std.conv; import std.string; void main() { Variant[] arr; auto

Re: Array Template

2017-12-16 Thread Vino via Digitalmars-d-learn
On Saturday, 16 December 2017 at 06:42:53 UTC, codephantom wrote: On Friday, 15 December 2017 at 17:21:55 UTC, Vino wrote: Hi All, Request your help, Is it possible to an template array something similar as below so that we can insert any type of value(string, int etc). If possible can you

Re: Array Template

2017-12-15 Thread codephantom via Digitalmars-d-learn
On Friday, 15 December 2017 at 17:21:55 UTC, Vino wrote: Hi All, Request your help, Is it possible to an template array something similar as below so that we can insert any type of value(string, int etc). If possible can you provide me a example of how to define such array.

Re: Array Template

2017-12-15 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Dec 15, 2017 at 05:21:55PM +, Vino via Digitalmars-d-learn wrote: > Hi All, > > Request your help, Is it possible to an template array something > similar as below so that we can insert any type of value(string, int > etc). If possible can you provide me a example of how to define

Array Template

2017-12-15 Thread Vino via Digitalmars-d-learn
Hi All, Request your help, Is it possible to an template array something similar as below so that we can insert any type of value(string, int etc). If possible can you provide me a example of how to define such array. Array!(Tuple!(T n)) From, Vino.B