realbasic-plugins
[Top] [All Lists]

Re: Subclassing from my own plugin

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Subclassing from my own plugin
From: "Theodore H. Smith" <delete at elfdata dot com>
Date: Sun, 24 Dec 2006 01:29:51 +0000
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=FE7MXjnrpp9NALw+fJmg2489wEFw6CAtlaRIpX4Rpiw9iTezgIoQEFPsVyl6a7MA3/w62VARmBEbTJmupW7HXo8xY42JmYasxBgqhH0flmyYMvvE1wqtuPSwUvksDDYaYAwIRZL1nIHlbOF2YBpzYPwP2bHanIoqveR26Vl7dhc=
References: <1hqtsrh dot 1cdx64v1x2a07yM%support at monkeybreadsoftware dot de>

On 24 Dec 2006, at 00:16, Christian Schmitz wrote:

Theodore H. Smith <delete at elfdata dot com> 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.

Do you know they don't work properly, though? Tested it?

I do normally declare a struct with all the fields ever used in the
subclasses and than only use that one struct for all.

That's a real waste :(

Why do you do this? Because you don't trust RB to work properly? Or why?

I don't like the idea of wasting a single byte. It all adds up you see. Sometimes I may waste a byte or two though ;) but only when it adds up to a better practice in other areas of the app or my development process.

If it's unneccessary, I'd rather avoid that waste!
_______________________________________________
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>


<Prev in Thread] Current Thread [Next in Thread>