better than union and array questions

2009-09-18 Thread Saaa
(D1 Phobos) I use the struct below like: Struct[][char[]] _struct; Is there a better way to support arrays of any type? Currently all the code working with these Structs are templated with loads of static ifs in them. Also, is it possible to add a .deepdup property to all arrays? One last quest

Re: better than union and array questions

2009-09-18 Thread Saaa
> (D1 Phobos) > I use the struct below like: Struct[][char[]] _struct; > > Is there a better way to support arrays of any type? > Currently all the code working with these Structs are templated with loads > of static ifs in them. > > Also, is it possible to add a .deepdup property to all arrays?

Re: better than union and array questions

2009-09-19 Thread bearophile
Saaa: > Is there a better way to support arrays of any type? > Currently all the code working with these Structs are templated with loads > of static ifs in them. You have to ask a more precise question if you want an answer. > Also, is it possible to add a .deepdup property to all arrays? D

Re: better than union and array questions

2009-09-19 Thread Saaa
bearophile Wrote: > Saaa: > > > Is there a better way to support arrays of any type? > > Currently all the code working with these Structs are templated with loads > > of static ifs in them. > > You have to ask a more precise question if you want an answer. Maybe a more general one :) I use a t

Re: better than union and array questions

2009-09-21 Thread Don
bearophile wrote: Saaa: Is there a better way to support arrays of any type? Currently all the code working with these Structs are templated with loads of static ifs in them. You have to ask a more precise question if you want an answer. Also, is it possible to add a .deepdup property to

Re: better than union and array questions

2009-09-21 Thread Saaa
Don wrote: > You always seem to be so negative! In one recent DMD release, half the > changes were bugfixes requested by you... > > If everyone involved in compiler development spent 100% of their time on > bearophile requests, you still might not get everything you want . > Actually you have at