Path: utzoo!utgpu!news-server.csri.toronto.edu!me!zougas Newsgroups: comp.lang.c++ From: zougas@me.utoronto.ca ("Athanasios(Tom) Zougas") Subject: collection classes Message-ID: <90Oct8.223233edt.19491@me.utoronto.ca> Keywords: set bag collection heap class Organisation: U of Toronto, Dept. of Mechanical Engineering Organization: Mechanical Engineering, U of Toronto Distribution: comp Date: 9 Oct 90 02:32:38 GMT I've seen two techniques for emulating Smalltalk-like collection classes. In one, the contents are pointed to by a 'void *'. In the other, a bunch of defines are used to make the contents pointed to by the specific type pointer. What are the netters' comments on these? I prefer the former myself, since I don't have to mess around with defines, which can make debugging difficult. Tom. p.s. I know this will be moot once 'templates' come into existence. -- I can be reached at... zougas@me.utoronto.ca || zougas@me.toronto.edu || ...!utai!me!zougas