Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usenet!talon.UCS.ORST.EDU!news.cs.indiana.edu!arizona.edu!arizona!dave From: dave@cs.arizona.edu (Dave P. Schaumann) Newsgroups: comp.lang.c Subject: Re: Tough stupid array question Message-ID: <981@caslon.cs.arizona.edu> Date: 1 Mar 91 20:31:45 GMT References: <1991Feb27.054609.10792@nlm.nih.gov> <10362@dog.ee.lbl.gov> <1991Mar1.013852.9036@nlm.nih.gov> <91059.215903DOCTORJ@SLACVM.SLAC.STANFORD.EDU> Distribution: usa Organization: U of Arizona CS Dept, Tucson Lines: 14 In article <91059.215903DOCTORJ@SLACVM.SLAC.STANFORD.EDU> DOCTORJ@SLACVM.SLAC.STANFORD.EDU (Jon J Thaler) writes: >Regarding bounds checking... > >[method deleted] Bounds checking in arrays can be done quite easily in C++, by overloading the [] operator... (Just a thought. If you *really* need to do index checking, you might consider switching.) -- Dave Schaumann dave@cs.arizona.edu 'Dog Gang'! Where do they get off calling us the 'Dog Gang'? I'm beginning to think the party's over. I'm beginning to think maybe we don't need a dog. Or maybe we need a *new* dog. Or maybe we need a *cat*! - Amazing Stories