Re: Change in the unittype and linktype interface

Martin Bayer <[email protected]>
Newsgroups gmane.comp.video.gephex.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

| I would like to propose a change of the interface of UnitType and
| LinkType (as exported from the plugins).
| ...
| The problem I have with this interface is that is mixes two different
| concepts: the Unit type (which is the type of instances of an effect)
| and the UnitType type (which is the type of instances that describe
| properties for all Units of this type).

I think we had this in one of the first drafts, but merged the two
vtables to keep it simple. But at that time there weren't your idlc and
pluc compiler in sight. We discarted the cleaner concept of two vtables
in favour of less handwritten code.

I second your proposal.

| Also, it will be possible to store common data for several units in
| the in the UnitType object that created them (thus avoiding the use of
| static data in unit implementations).

We to need discourage all usage of static members that disallows
reentrant method calls.

Martin

- --
GnuPG (ID B3D1B1BB) C2F4 F775 5022 1891 48F4  761D 0A6D E2E7 B3D1 B1BB
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAKSFNCm3i57PRsbsRAvVIAJsEqhNxy2macbajSbWQV5GS/FvG8gCfenLS
4Z7aJ8Yw4wKzr03BOCL5F6A=
=Sesj
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.