Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!rice!uw-beaver!tektronix!tekcrl!tekchips!guyc From: guyc@tekchips.LABS.TEK.COM (guy cherry) Newsgroups: comp.lang.c++ Subject: virtual function limitation Message-ID: <3781@tekcrl.LABS.TEK.COM> Date: 1 Apr 89 05:31:50 GMT Sender: ftp@tekcrl.LABS.TEK.COM Reply-To: guyc@tekchips.LABS.TEK.COM (guy cherry) Organization: Tektronix, Inc., Beaverton, OR. Lines: 19 About a week ago I posted a note claiming that cfront 1.2 only allowed 127 entries in the virtual functions tables (the number actually ranges from 110 to 127 depending on the machine). I thought some of you more serious virtual function fanatics might be interested in the work-around: There are two class members defined in cfront.h that are declared as chars. I changed them to unsigned chars. They are virt_count (on or about line 283) and f_virtual (on or about line 368). This change has been working fine for the last week or so although I can't claim that I didn't break something else ("seems" harmless enough). Since I don't think we'll need more than 255 v-table entries I didn't try replacing the chars with ints or shorts but this would be the obvious next step. Usenet: [ucbvax,decvax,allegra,uw-beaver,hplabs]!tektronix!tekchips!guyc Email: guyc@tekchips.crl.labs.tek.com US Mail: Guy Cherry, Computer Research Lab, Tektronix, Inc. Box 500 MS 50-662, Beaverton OR 97077 Phone: 503-627-1123