Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!ames!apple!motcsd!hpda!hpcuhb!hpcllla!hpclove!mnm From: mnm@hpclove.HP.COM (Michey Mehta) Newsgroups: comp.lang.c++ Subject: vtable sharing in cfront Message-ID: <1250003@hpclove.HP.COM> Date: 1 Sep 89 19:27:28 GMT Organization: Hewlett Packard Calif. Language Lab Lines: 20 I recently took a C++ course at UC Santa Cruz which was taught by Stroustrup. During this course, he mentioned that if a class needs a virtual function table, this table is defined in only one file (this is the file which contains the definition of the first virtual member function); all other files will just have an extern declaration of this vtable. This is a new feature of 2.0. I have two questions about this: 1. He also mentioned a corner case in which multiple vtable definitions might still be emitted for the same class; does anyone know what this corner case is? 2. In light of this feature, what do the +e0 and +e1 options do in 2.0? -- Michey Mehta -- Hewlett Packard California Language Lab Internet: mnm@hpda.hp.com UUCP: hplabs!hpda!mnm