guyc@tekchips.LABS.TEK.COM (guy cherry) (04/01/89)
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