Mail Archives: djgpp/1996/11/14/13:30:27
From: | "Ilya P. Ryzhenkov" <ilya AT spy DOT isp DOT nsc DOT ru>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | DLM Package - version 1.00.9
|
Date: | Thu, 14 Nov 1996 21:21:25 -0800
|
Organization: | Institute of Semiconductor Physics
|
Lines: | 48
|
Distribution: | world
|
Message-ID: | <328BFDD5.3796@spy.isp.nsc.ru>
|
Reply-To: | ilya AT spy DOT isp DOT nsc DOT ru
|
NNTP-Posting-Host: | arab.isp.nsc.ru
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hello!
I've just released a new version of DLM engine.
It may be downloaded from
ftp://spy.isp.nsc.ru/sys/pub/dlm/dlm1009.zip
This version contains many new features.
If you have never used DLMs before, but want to try -
be sure to read *.txt files from the package.
This release contains new outstanding feature, which I call
NAMED CLASSES.
Citation from txt file :
====================
NAMED CLASS - what the beast is it ?
DLMs give your unique feature - create a instance of class if you
have the following information :
1. You know it's name as a string (char *)
2. You know (i.e. have a DECLARATION of) the class, which is
higher in the hierarhy (i.e. any of parent class). You
need this to able to call virtual functions and construct objects.
3. Someone who knows (have a DECLARATION of) this class used special
macro to make this class available for others.
The syntax is the following :
In the EXPORTER module, i.e. where the class was DEFINED.
DLM_EXP_NAMEDCLASS(class_identifier)
This one is needed to obtain sizeof(class_identifier) at run-time.
In the IMPORTER module, i.e. where you want to create instance of such
class.
DLM_USE_NAMEDCLASS /* No name here! This one allows to use any of
them */
To create instance :
new("class_identifier") Known_Base_Class_identifier( parameters );
This command will call class_indetifier's (NOT Base's!) constructor
with the
given parameters. It's obvious, that you must HAVE constructor with
such prototype in the `class_indetifier' class.
===============
--
Sincerely yours, Ilya
-----------------------------------------------------------------------------
mailto://ilya AT spy DOT isp DOT nsc DOT ru
http://spy.isp.nsc.ru
- Raw text -