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: Norman Palardy <npalardy@great-white-software.com>
Date: Wed, 26 Nov 2008 16:37:07 -0700
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: <33cbfa100811261510l7803122fu2592dd1d7f03848b@mail.gmail.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>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On 26-Nov-08, at 4:10 PM, Lars Jensen wrote:

They do not specify HOW to implement something just the API that will be adhered to

Well they do specify whether a symbol is implemented as a method or as a property.

They never specify data ... so no properties

Yes this does mean you have to use methods BUT because you can use a method getter/setter pair in a manner that is for all intents and purposes indistinguishable from a real property I'd use that

ie/ you have no clue if

     myclass.someProperty = 6

is implemented as
   a naked public property
a getter setter pair with a setter like someProperty(assigns i as integer)
   a computed property with a setter


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