| To: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
|---|---|
| Subject: | Re: Interfaces and Computed Properties |
| From: | Karen <keatk@verizon.net> |
| Date: | Wed, 26 Nov 2008 19:17:22 -0500 |
| Authentication-results: | mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com |
| Delivered-to: | listarchive@realsoftware.com |
| In-reply-to: | <AC57F70B-FE08-40BB-972A-A5713D0167E2@thezaz.com> |
| References: | <4F4D1ADF-52CE-4EBA-9346-9BE37992CCDD@xochi.com> <1ED2BB86-1E43-4A4C-8245-F8D587E28BC2@great-white-software.com> <BFB05065-1FC3-4400-A27F-1448615FFD11@xochi.com> <AC57F70B-FE08-40BB-972A-A5713D0167E2@thezaz.com> |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
On Nov 26, 2008, at 6:24 PM, Thom McGrath wrote: It should be possible to return super.visible instead. It works in many other places, don't see why it wouldn't work here. For shadowed properties you would have to do: Return SuperClassName(me).VisibleI've done that with computed properties, but never tried having a subclass with a getter with the same name name as a superclass property and so don't know if that works. Of course shadowing is fragile for EXACTLY the reason shown above ... Casting can cause difficult to trackdown bugs because of that behavior... that said, it's still useful sometimes ... if you are very careful. - Karen _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Interfaces and Computed Properties, Norman Palardy |
|---|---|
| Next by Date: | Re: Interfaces and Computed Properties, Norman Palardy |
| Previous by Thread: | Re: Interfaces and Computed Properties, Thom McGrath |
| Next by Thread: | Re: Interfaces and Computed Properties, Norman Palardy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |