realbasic-nug
[Top] [All Lists]

Re: Interfaces and Computed Properties

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Interfaces and Computed Properties
From: Michael Diehr <md03@xochi.com>
Date: Sun, 30 Nov 2008 08:46:11 -0800
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: <EBFAA594-9499-403B-820F-1445855B9D76@great-white-software.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> <33cbfa100811261510l7803122fu2592dd1d7f03848b@mail.gmail.com> <421C4E27-0784-4D03-B28D-EB52A783BADE@great-white-software.com> <33cbfa100811261628h68d4a3c2xd11a3ca8d3c9881e@mail.gmail.com> <007DA3B0-FAE4-4E85-81E4-A0122C860DC1@great-white-software.com> <D777EFE4-6977-4EA2-A3C0-EC3609BBB2C0@verizon.net> <89FEA483-007C-4CD8-9D64-5A47B6D0A57F@great-white-software.com> <A5E48DD7-90A7-473B-968D-C3621A85DC61@verizon.net> <EBFAA594-9499-403B-820F-1445855B9D76@great-white-software.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Thanks all for the detailed comments & discussion.

Trying to distill this down -- would anyone be philosophically opposed to either of these feature requests?

* a way for Interfaces to play nicely with Computed Properties, e.g.
  Given
  Interface:  method foo as double
it would be legal for a subclass to satisfy the interface by implementing:
  Subclass: computed property foo as double

* a way for a subclass (including window classes) to shadow a superclass property with a method or computed property, and then access that property:
  computed property WindowSubclass.Visible() as boolean
    get:
return super.visible // access Window.Visible, not WindowSubclass.Visible()!
    set:
       super.visible = value
       ' do special subclass logic here

I'll submit to fogbugz if nobody has any objections?

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