🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.windows.ms.programmer
1 messages
1 total messages Started by Douglas Doe Wed, 15 Apr 1992 05:41
"member" function in Borland C++?
#387
Author: 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 
==========================================================================
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads