Re: function to resize a UML class object's extent?
From: Lars Clausen <lrclause cs uiuc edu>
To: dia-list gnome org
Subject: Re: function to resize a UML class object's extent?
Date: 30 Nov 2001 13:06:35 -0600
On Fri, 30 Nov 2001, Cyrille Chepelov wrote:
> Le ven, nov 30, 2001, à 07:55:22 -0700, Andrew S . Halper a écrit:
>
>> I'll admit that most of the StdProp C-as-OOL code I've seen is at a
>> level of C technical proficiency that is beyond me, but on the other
>> hand, I do an abundance spare time, and could probably make a decent try
>> at it eventually.
[...]
> Enough of philotheoretical ramblings; C-as-OOL is really less complicated
> than what it looks like; one just has to explicitly drag around "this"
> and build one's own vtables (OTOH, you can do some pretty Python-esque
> things in C-as-OOL you can't in C++; like, alter at runtime the vtable of
> an instance to change the implementation of a method. Sounds complicated
> ? It's not, if you see a function pointer not as a function pointer, but
> as a single-entry vtable...).
I was thinking of the vtable things, and AFAIR it doesn't really do
inheritance. If a sub'class' of Connection has a NULL in its vtable, it
doesn't mean the superclass's function gets called. Is there anything
prohibiting the class constructor from copying functions from the
superclass when the vtable has a NULL?
-Lars
--
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I |----------------------------
will defend to the death your right to say it." | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire | what's with the handbasket?