C/C++
dynace.txt
Associated article: Advanced Object-Oriented Features for C/C++
Tags: C/C++
Published source code accompanying the article by Blake McBride in which he presents Dynace, a development tool that to C or C++ object-oriented capabilities previously only available in languages such as Smalltalk and CLOS--but without the overhead normally associated with those environments. See the subdirectory DYN401 for uncompressed source code and related files, and DYN401.ZIP for compressed versions.
_Advanced Object-Oriented Features for C/C++_
by Blake McBride
Example 1:
defclass Person { /* Define class */
char name[30]; /* Private instance variables */
int age;
class:
int numberOfPeople; /* Private class variables */
};
imeth SetName(char *nm) { /* Define method */
strcpy(name, nm);
return self;
}
imeth char *...


