realbasic-nug
[Top] [All Lists]

Re: Extends with an array

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Extends with an array
From: Asher Dunn <asher at fireyesoftware dot com>
Date: Sun, 30 Jan 2005 15:14:56 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <B1155ABA-608B-11D9-BA07-000393B8CE74 at mac dot com>

On Jan 7, 2005, at 4:08 AM, Bill Johnson wrote:

I see I can Extend the array version of a class with a method like

Sub AlignLeft(Extends item() As LCRect)
   // aligning code here

End Sub

And call it like >>> myRectArray.AlignLeft

That's cool but is it legal? The LR only mentions that Extends can be used to extend a class. I do know Extends also applies to Class Interfaces but does it apply also for arrays of your own Class or Class Interface?

I've done that. I've also extended data types (integer, string, etc.)

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software <http://www.fireyesoftware.com/>
AIM and Yahoo: fireye7517

_______________________________________________
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>