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: "Theodore H. Smith" <delete at elfdata dot com>
Date: Fri, 21 Jul 2006 21:28:54 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <1hiuist dot 1xnb41aq4hw21M%support at monkeybreadsoftware dot de> <E8ACDAE1-8588-4C28-B33A-95AA62CEE832 at mobleybros dot com>

On 21 Jul 2006, at 21:24, Phil M wrote:

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

The documentation only seems to provide information for a default (no
parameters) constructor and that is one that I *don't* want.

that's the initialiser which is always called.

Just define two methods for your constructors.

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

They are just REALmethodDefinitions!

So you'll have MyPicture.Invert and MyPicture.Constructor(params as param)

Just add a method named "Constructor" in the same way you add normal methods.
_______________________________________________
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>