Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
January 03, 2009 Two Tango container package | ||||
---|---|---|---|---|
| ||||
I was wondering why there are 2 container package under tango.util.collection ,tango.util.container which some of the libarary are the same,say HashSet,HashMap which just make a bit confuse? Thanks. |
January 03, 2009 Re: Two Tango container package | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sam Hu | On Sat, 03 Jan 2009 17:10:44 +1300, Sam Hu <samhu.samhu@gmail.com> wrote: > I was wondering why there are 2 container package under tango.util.collection ,tango.util.container which some of the libarary are the same,say HashSet,HashMap which just make a bit confuse? > > Thanks. Container is the newer one. Collection is not going to be removed so suddenly (deprecated). See here http://dsource.org/projects/tango/forums/topic/523 |
January 03, 2009 Re: Two Tango container package | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tim M | Tim M wrote: > On Sat, 03 Jan 2009 17:10:44 +1300, Sam Hu <samhu.samhu@gmail.com> wrote: > >> I was wondering why there are 2 container package under tango.util.collection ,tango.util.container which some of the libarary are the same,say HashSet,HashMap which just make a bit confuse? >> >> Thanks. > > Container is the newer one. Collection is not going to be removed so suddenly (deprecated). See here http://dsource.org/projects/tango/forums/topic/523 It (tango.util.collection) is deprecated yes, but will not stay for long. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango |
January 05, 2009 Re: Two Tango container package | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lars Ivar Igesund | OK,so which one is equivelant to ArrayBag in the container module?I found Vector is not the same as c++ std::vector<>does,while ArrayBag in the collection module looks more like.If the collection module deprecates in the future,which one in the container module will act as ArrayBag? Thanks. Sam |
January 06, 2009 Re: Two Tango container package | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sam Hu | Sam Hu wrote: > OK,so which one is equivelant to ArrayBag in the container module?I found Vector is not the same as c++ std::vector<>does,while ArrayBag in the collection module looks more like.If the collection module deprecates in the future,which one in the container module will act as ArrayBag? That particular container have been prioritized down since arrays in D are fairly nice to use in any case - so an implementation may have to rely on a contribution. or at least a wishlist ticket. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango |
Copyright © 1999-2021 by the D Language Foundation