🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #387

"member" function in Borland C++?

#387
From: Douglas Doe
Date: Wed, 15 Apr 1992 05:41
23 lines
1224 bytes
Hello,

Think C on the Mac has a "member" function to test object membership in 
a class.  It is defined as follows:

	char member(void *anObject, void* aClass);

The function returns 1 if anObject is an instance of aClass or an instance 
of one of aClass' ancestors.  Otherwise, it returns zero.

Is there a similar function in Borland C++ (3.0)?  If not (which is the way 
it looks to me), do instances of objects carry around a class reference 
number?  If so, is there any way to get a class ref. number from a class 
name?

Any help/ideas is/are appreciated.

==========================================================================
 Douglas Doe
 NorTel Technology Centre                       dgdoe@wampyr.cc.uow.edu.au
 University of Wollongong, Australia 
==========================================================================
Technical Details
Message-ID: <1992Apr15.054137.21406@cc.uow.edu.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!deakin.OZ.AU!cs.uow.edu.au!cc.uow.edu.au!dgdoe

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!deakin.OZ.AU!cs.uow.edu.au!cc.uow.edu.au!dgdoe
From: dgdoe@cc.uow.edu.au (Douglas Doe)
Newsgroups: comp.windows.ms.programmer
Subject: "member" function in Borland C++?
Keywords: member
Message-ID: <1992Apr15.054137.21406@cc.uow.edu.au>
Date: 15 Apr 92 05:41:37 GMT
Organization: University Of Wollongong
Lines: 23