Article View: comp.windows.interviews
Article #22Root superclass for InterViews
From: Bertil Askelid
Date: Wed, 28 Oct 1992 22:04
Date: Wed, 28 Oct 1992 22:04
25 lines
1820 bytes
1820 bytes
For the sake of my application I need to have all InterViews objects be able to tell from which class they were instanciated. As C++ doesn't provide this information (I don't understand why it doesn't do such an obviously necessary thing?), I went about it and came up with the easy and obvious solution of letting all the InterViews classes I am working with have a new class called Object (what else) as their common root. Minimal change to the InterViews source (just add "public Object" to all classes without a superclass (14 of them in the Interactors based parts of InterViews)). No problem compiling either. Even though my Object class worked just fine, I ran into memory corruption in other places, that previously worked, so I had to give up. I am using InterViews-3.0.1 and compiles it with gcc-2.1 and libg++-2.0 on a Sparc IPX running SunOs-4.1.1. Any ideas? -- Bertil Askelid ebubra@ebu.ericsson.se
Technical Details
Message-ID:
<1992Oct28.220415.7155@exu.ericsson.se>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!texsun!exucom.exu.ericsson.se!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!texsun!exucom.exu.ericsson.se!news
From: ebubra@ebu.ericsson.se (Bertil Askelid)
Newsgroups: comp.windows.interviews
Subject: Root superclass for InterViews
Message-ID: <1992Oct28.220415.7155@exu.ericsson.se>
Date: 28 Oct 92 22:04:15 GMT
Sender: news@exu.ericsson.se
Reply-To: ebubra@ebu.ericsson.se (Bertil Askelid)
Followup-To: comp.windows.interviews
Organization: Ericsson Business Communications, Anaheim, California
Lines: 25
Nntp-Posting-Host: proton.ebu.ericsson.se
X-Disclaimer: This article was posted by a user at Ericsson.
Any opinions expressed are strictly those of the
user and not necessarily those of Ericsson.