🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
1 messages
1 total messages Started by Michael Pizolato Fri, 11 Sep 1992 18:39
Building a list of class names.
#1010
Author: Michael Pizolato
Date: Fri, 11 Sep 1992 18:39
43 lines
1994 bytes
I have a family of classes that all descend from a single class, call it class  
A.  As soon as possible after application launch, I need to build a list of the  
names of these classes, so that the list is available to the entire application  
before anything really happens.  For example, I want to wind up with a list of  
strings that looks like this:

	"A"  "B"  "C"  "D"  "E"

Such a list could come from any number of different class hierarchies.  Here are  
three examples that would produce the above list (if you are reading this in a  
proportional font, you may want to copy it to something mono-spaced so things  
line up properly):

   Object -- ... -- A +- B -- C
                      |
                      +- D -- E

   Object -- ... -- A -- B -- C +- D
                                |
                                +- E

   Object -- ... -- A -- D +- E
                           |
                           +- C -- B

It is not important that the list be sorted (that's easy enough to do once I  
have a raw list).  I am guaranteed to know that class A exists and is linked  
into the app, but other than that I will know nothing about A or its subclasses.   
For example, I will not know if there are any subclasses of A, nor the names of  
the subclasses of A if they do exist, nor the structure of the inheritance tree  
above or below A, nor if any instances of A or any of its subclasses exist or  
will exist during the run of the app.

Any and all ideas will be greatly appreciated.

Thanx,
Michael

--
Michael_Pizolato@afs.com
~18 kyu
Q16
NeXTMail appreciated
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