Path: news.cs.au.dk!news.net.uni-c.dk!sunsite.auc.dk!newsfeed1.uni2.dk!newsfeed1.swip.net!swipnet!newsfeed.ecrc.net!skynet.be!poster!not-for-mail From: Jean-Louis Leroy Newsgroups: comp.lang.beta Subject: Re: Beginner at work: two dimensional value-based array generic Date: Tue, 15 Dec 1998 23:32:44 +0100 Organization: Starfleet Lines: 25 Message-ID: References: Reply-To: jll@skynet.be NNTP-Posting-Host: dialup232.brussels2.skynet.be Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news1.skynet.be 913760601 6156 195.238.23.232 (15 Dec 1998 22:23:21 GMT) X-Complaints-To: abuse@skynet.be NNTP-Posting-Date: 15 Dec 1998 22:23:21 GMT X-Newsreader: Virtual Access by Ashmount Research Ltd, http://www.ashmount.com Xref: news.cs.au.dk comp.lang.beta:11755 Hello Peter, thanks for the information. Obviously my approach was too severely inspired by the C++ template mechanism I have the impression, however, that it is not possible to create a container generic and instantiate it on a simple type and get the same efficiency WRT space and speed as from an equivalent handwritten container. After changing my Array code along your indications, it didn't work on integer anymore, I had to use integerObject instead (I was not surprised). In C++-speak, it's as if I can have a handwritten vector_int or a vector, but not a vector. Am I right? Well at least this prevents the so-called 'object slicing' problem that plagues C++... > Of cause you know the book "Object-Oriented Programming in the > BETA Programming Language" by Madsen, Møller-Pedersen, and Nygaard. > I think this book would have answered your questions. I hope to get it next week from your distributor in France. Jean-Louis Leroy http://ourworld.compuserve.com/homepages/jl_leroy/