Theodore H. Smith <[EMAIL PROTECTED]> wrote:
> I've started making my first plugin class which is a subclass of
> another class.
Ok.
> Now, I have a question. Are there any known issues with this?
No.
> Basically, I'm assuming that subclassing in RB works like it's
> supposed to.
Yes. But if you subclass RB and C++ you have two sub classes which do
not work together directly.
> struct b {
> int f1;
> int f2;
> };
No. You should not assume that RB stored the data from a before or
behind the b data.
So you go the way Alfred showed. With different structs for each class.
> Otherwise, I must pass around 2 or 3 pointers to some functions when
> I really only wanted to access one pointer :(
I do normally declare a struct with all the fields ever used in the
subclasses and than only use that one struct for all.
Gruß
Christian
--
Around eleven thousand functions in one REALbasic plug-in.
The Monkeybread Software Realbasic Plugin v6.5. Now universal!
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>