D - implicit array declaration
- Matthew (4/4) Jan 23 2004 I'm trying to do the following:
- J Anderson (7/12) Jan 24 2004 I asked for this also.
- Matthew (5/20) Jan 24 2004 have
- Ilya Minkov (9/15) Jan 24 2004 This works:
I'm trying to do the following: int_vector_t vi3 = new int_vector_t(int[] { 10, 11. 12 }); Is there any kind of support for this in the language? If not, can we have it?
Jan 23 2004
Matthew wrote:I'm trying to do the following: int_vector_t vi3 = new int_vector_t(int[] { 10, 11. 12 }); Is there any kind of support for this in the language? If not, can we have it?I asked for this also. You meant: int_vector_t vi3 = new int_vector_t(int[] { 10, 11, 12 }); right? -- -Anderson: http://badmama.com.au/~anderson/
Jan 24 2004
"J Anderson" <REMOVEanderson badmama.com.au> wrote in message news:butenu$qqj$1 digitaldaemon.com...Matthew wrote:haveI'm trying to do the following: int_vector_t vi3 = new int_vector_t(int[] { 10, 11. 12 }); Is there any kind of support for this in the language? If not, can weWhat's the difference? Ah, the comma - doh! :)it?I asked for this also. You meant: int_vector_t vi3 = new int_vector_t(int[] { 10, 11, 12 });
Jan 24 2004
Matthew wrote:I'm trying to do the following: int_vector_t vi3 = new int_vector_t(int[] { 10, 11. 12 }); Is there any kind of support for this in the language? If not, can we have it?This works: const int [] vecdata = [1,2,3]; int [] vec = vecdata.dup; However, i would expect to be able to declare arrays inline... which is not possible yet. Are there any syntactic issues or is it just not implemented? Besides, run-time construction when necessry would be so cool! ;) -eye
Jan 24 2004