object model
- From: SainTiss <saintiss gmx net>
- To: dia-list gnome org
- Subject: object model
- Date: Tue, 28 Oct 2003 20:22:52 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I've got a quite general question here:
I've noticed that inheritance is simulated by having an instance of the
superclass as the first member...
But is there something like a checked type cast? i.e. where you'd get NULL if
the pointer isn't of the right type or something? (an equivalent of
dynamic_cast in C++ I mean)...
Also, I'm guessing there's something like polymorphism too... Is all this just
written from scratch for Dia, or is this all part of a certain object model,
like GObject? I'd think so, but then again it seems like Object doesn't
inherit from GObject, so I'm a bit confused...
Thanks,
Hans
- --
Ark Linux - Linux for the Masses (http://arklinux.org)
Capitalism:
You don't have any cows. The bank will not lend you money to buy cows,
because you don't have any cows to put up as collateral.
Representative Democracy:
You have two cows. Your neighbors pick someone to tell you who gets the milk.
In a world without walls and fences, who needs windows and gates?
Hans Schippers
2LIC INF
UA 2003-2004
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/nsIMXlnUYIbmLOQRAhIiAKCW+KE8ULXrubb8D3W/FKTcAhnUewCdHJ+f
+VYZVQ8rPjneB2yVRbN8sZ8=
=5jB+
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]