realbasic-plugins
[Top] [All Lists]

Re: Overloading a Constructor

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Overloading a Constructor
From: Norman Palardy <npalardy at great-white-software dot com>
Date: Fri, 21 Jul 2006 17:52:35 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <1hiujoy dot syxsec18mziq3M%support at monkeybreadsoftware dot de> <943F2C42-8E51-40A8-A7D8-A261FFC0B8CC at mobleybros dot com>

On Jul 21, 2006, at 1:41 PM, Phil M wrote:

On Jul 21, 2006, at 4:27 PM, Christian Schmitz wrote:

Sorry, I am a little slow.  Could you please give an example?

Just like in RB. Define methods as usual and name them Constructor or class name.

For use of REALmethodDefinition, please check the examples.

There are only 7 examples in the SDK and none of them have overloaded constructors. The only other plugin source code examples I have are the PNG Utilities and the TT Plugin Starter. I learn best by example, but there are very few examples to work with, and the documentation is incomplete or in some cases inaccurate.

I think all they are saying is to create several regular method definitions for your class.
Just name them "Constructor"

A constructor in RB is just a method anyways _______________________________________________
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>