<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>RE: [LC++]enum, #define, const, static const, or member const???</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>&gt; I want to define a certain class type.&nbsp; Objects of this</FONT>
<BR><FONT SIZE=2>&gt; type will have an attribute called &quot;kind&quot;, indicating what</FONT>
<BR><FONT SIZE=2>&gt; kind of object it is.&nbsp; There will be a finite collection of</FONT>
<BR><FONT SIZE=2>&gt; different kinds of object.</FONT>
</P>

<P><FONT SIZE=2>Have you thought of RTTI (that's standard C++).</FONT>
<BR><FONT SIZE=2>It's a bit slower, though, as it works off a chain of inheritance</FONT>
<BR><FONT SIZE=2>rather than vtable calls.</FONT>
<BR><FONT SIZE=2>Basically, it adds a new entry in the vtable that points to a</FONT>
<BR><FONT SIZE=2>structure describing the type of an object.</FONT>
</P>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Vincent Penquerc'h </FONT>
</P>

</BODY>
</HTML>