Compare Revisions

Defining Getters and Setters

Revision 169080:

Revision 169080 by Nickolay on

Revision 169081:

Revision 169081 by Blixt on

Title:
Defining Getters and Setters
Defining Getters and Setters
Slug:
Talk:JavaScript/Guide/Obsolete_Pages/Creating_New_Objects/Defining_Getters_and_Setters
Talk:JavaScript/Guide/Obsolete_Pages/Creating_New_Objects/Defining_Getters_and_Setters
Content:

Revision 169080
Revision 169081
n7    <h4 name="Getter.2FSetter_Definition_Clarification">n7    <h3 id="Misleading_example_code" name="Misleading_example_cod
 >e">
8      Misleading example code
9    </h3>
10    <p>
11      The o = new Object; part of the example code is rather misl
 >eading as it just creates an object that is discarded by the next
 > statement when a second object is created (Unless I've missed so
 >me kind of Ruby-like object extension support in JavaScript 1.5.)
12    </p>
13    <p>
14      <a href="User:Blixt">Blixt</a> 01:18, 29 April 2008 (PDT)
15    </p>
16    <h4 id="Getter.2FSetter_Definition_Clarification" name="Gette
 >r.2FSetter_Definition_Clarification">
n16    <h3 name="Reserved_Words.3F">n25    <h3 id="Reserved_Words.3F" name="Reserved_Words.3F">
n27    <h3 name="Available_only_in_C.3F">n36    <h3 id="Available_only_in_C.3F" name="Available_only_in_C.3F"
 >>
t34      The "What's new" page at the start of this document (http:/t43      The "What's new" page at the start of this document (<a cla
>/developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:About) s>ss=" external" href="http://developer.mozilla.org/en/docs/Core_Ja
>ays, "Getters and Setters: JavaScript writers can now add getters>vaScript_1.5_Guide:About" rel="freelink">http://developer.mozilla
> and setters to their objects. This feature is available only in >.org/en/docs....5_Guide:About</a>) says, "Getters and Setters: Ja
>the C implementation of JavaScript.">vaScript writers can now add getters and setters to their objects
 >. This feature is available only in the C implementation of JavaS
 >cript."

Back to History