Re: Array is already defined

2018-01-05 Thread Vino via Digitalmars-d-learn
On Friday, 5 January 2018 at 16:55:50 UTC, Steven Schveighoffer wrote: On 1/5/18 11:39 AM, Vino wrote: Hi Steve,  if we add the braces we are getting the Error: undefined identifier Datacol void main () { Array!int Keycol; static foreach(i; 0 .. 3) { {     typeof(read()[i])

Re: Array is already defined

2018-01-05 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/5/18 11:39 AM, Vino wrote: Hi Steve,  if we add the braces we are getting the Error: undefined identifier Datacol void main () { Array!int Keycol; static foreach(i; 0 .. 3) { {     typeof(read()[i]) Datacol;     Datacol.insertBack(sort(read[i].dup[]).uniq);    

Re: Array is already defined

2018-01-05 Thread Vino via Digitalmars-d-learn
On Friday, 5 January 2018 at 16:07:49 UTC, Steven Schveighoffer wrote: On 1/5/18 10:56 AM, Vino wrote: On Friday, 5 January 2018 at 15:28:58 UTC, Jonathan M Davis wrote: On Friday, January 05, 2018 15:22:49 Vino via Digitalmars-d-learn wrote: Hi All,   Request your help on how to unset or

Re: Array is already defined

2018-01-05 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Jan 05, 2018 at 03:56:30PM +, Vino via Digitalmars-d-learn wrote: [...] > Hi Jonathan, > > Sorry , not able to get you, can you please point our as to where we > need to added the braces in the below example. Try this: void main () { Array!int Keycol;

Re: Array is already defined

2018-01-05 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/5/18 10:56 AM, Vino wrote: On Friday, 5 January 2018 at 15:28:58 UTC, Jonathan M Davis wrote: On Friday, January 05, 2018 15:22:49 Vino via Digitalmars-d-learn wrote: Hi All,   Request your help on how to unset or delete an array, in the below example, we get an error "Common  is already

Re: Array is already defined

2018-01-05 Thread Vino via Digitalmars-d-learn
On Friday, 5 January 2018 at 15:28:58 UTC, Jonathan M Davis wrote: On Friday, January 05, 2018 15:22:49 Vino via Digitalmars-d-learn wrote: Hi All, Request your help on how to unset or delete an array, in the below example, we get an error "Common is already defined". Auto fn1 () {

Re: Array is already defined

2018-01-05 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, January 05, 2018 15:22:49 Vino via Digitalmars-d-learn wrote: > Hi All, > > Request your help on how to unset or delete an array, in the > below example, we get an error "Common is already defined". > > Auto fn1 () { > Array!string Text; > Array!string Number; > return tuple(Text,