realbasic-nug
[Top] [All Lists]

Re: Method vs Property

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Method vs Property
From: Joe Huber <joehuber at talasoft dot com>
Date: Sat, 30 Sep 2006 06:50:07 -0700
Cc: Robert Livingston <rlivingston at mac dot com>
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20060929170038 dot 743DC153AF65 at lists dot realsoftware dot com> <1108DAEC-0D85-44AB-9D29-3F123622D610 at mac dot com>
At 11:05 PM -0700 9/29/06, Robert Livingston wrote:
When is something a property and when a method?

In addition to the good explanations already given, one other difference is whether they should up in the debugger.

Displaying a property is a relatively simple process of grabbing a value, then formatting it for sidplay

Displaying a value from a method first involves running that method to obtain the value, and the code in that method might have side effects on other code or properties.

So the debugger generally doesn't show values from methods, only properties.

Regards,
Joe Huber
_______________________________________________
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>