Path: utzoo!news-server.csri.toronto.edu!rpi!uupsi!sunic!news.funet.fi!funic!santra!santra!Ari.Huttunen From: Ari.Huttunen@hut.fi (Ari Juhani Huttunen) Newsgroups: comp.lang.c++ Subject: Re: Matrix Class Libraries Message-ID: Date: 18 Mar 91 16:34:45 GMT References: <13505@darkstar.ucsc.edu> <1991Mar18.025539.18998@athena.mit.edu> Sender: news@santra.uucp (Cnews - USENET news system) Organization: Helsinki University of Technology, Finland Lines: 16 In-Reply-To: bjaspan@athena.mit.edu's message of 18 Mar 91 02:55:39 GMT In article <1991Mar18.025539.18998@athena.mit.edu> bjaspan@athena.mit.edu (Barr3y Jaspan) writes: >class Matrix { ... > inline double& operator()(int, int) const; ... >}; I think this points out one problem in C++. You really should be able to say: inline double& operator[][](int, int) const; The problem isn't very serious, but it just isn't natural to access array members using notation array(x,y), but array[x][y]. -- Ari Huttunen, email: Ari.Huttunen@hut.fi, phone: 90-7285944