Differences From Artifact [34785dddb366db48]:
- File
doc/value.html
- 2010-11-24 12:14:00 - part of checkin [3ae09b8cbf] on branch trunk - changed if-then-else syntax (user: kinaba) [annotate]
To Artifact [c36eaebf49fd7834]:
- File
doc/value.html
- 2010-11-25 03:32:41 - part of checkin [474c4facf0] on branch trunk - Introduced makefile to build documents. sample/macro.pmy is fully reformed. print(x) now returns x, not 0. (user: kinaba) [annotate]
104 <dd>Context (variable environment) 104 <dd>Context (variable environment)
105 Simlar to prototype chain of ECMAScript etc. 105 Simlar to prototype chain of ECMAScript etc.
106 But extended with the notion of "Layer"<br><br> 106 But extended with the notion of "Layer"<br><br>
107 107
108 108
109 <script>explorer.outline.incSymbolLevel();</script> 109 <script>explorer.outline.incSymbolLevel();</script>
110 <dl> 110 <dl>
> 111 <script>explorer.outline.writeEnabled = true;</script>
> 112 <dt><span class="decl">void
> 113 <span class="currsymbol">set</span>
> 114 <script>explorer.outline.addDecl('set');</script>
> 115
> 116 (string <span class="funcparam">i</span>, Layer <span class="funcparam">lay</spa
> 117 </span></dt>
> 118 <script>explorer.outline.writeEnabled = false;</script>
> 119
> 120
> 121 <dd>Set the value <span class="funcparam">v</span> to the index <span class="fun
> 122
> 123 </dd>
> 124
> 125 <script>explorer.outline.writeEnabled = true;</script>
> 126 <dt><span class="decl">const bool
> 127 <span class="currsymbol">has</span>
> 128 <script>explorer.outline.addDecl('has');</script>
> 129
> 130 (string <span class="funcparam">i</span>, Layer <span class="funcparam">lay</spa
> 131 </span></dt>
> 132 <script>explorer.outline.writeEnabled = false;</script>
> 133
> 134
> 135 <dd>True if index <span class="funcparam">i</span>
> 136 <span class="currsymbol">has</span>
> 137 <script>explorer.outline.addDecl('has');</script>
> 138
> 139 value in layer <span class="funcparam">lay</span><br><br>
> 140
> 141 </dd>
> 142
> 143 <script>explorer.outline.writeEnabled = true;</script>
> 144 <dt><span class="decl">Value
> 145 <span class="currsymbol">get</span>
> 146 <script>explorer.outline.addDecl('get');</script>
> 147
> 148 (string <span class="funcparam">i</span>, Layer <span class="funcparam">lay</spa
> 149 </span></dt>
> 150 <script>explorer.outline.writeEnabled = false;</script>
> 151
> 152
> 153 <dd>Return the value of index <span class="funcparam">i</span> at layer <span cl
> 154
> 155 </dd>
> 156
> 157 <script>explorer.outline.writeEnabled = true;</script>
> 158 <dt><span class="decl">T
> 159 <span class="currsymbol">access</span>
> 160 <script>explorer.outline.addDecl('access');</script>
> 161
> 162 (T, S...)(Layer <span class="funcparam">lay</span>, string <span class="funcpara
> 163 </span></dt>
> 164 <script>explorer.outline.writeEnabled = false;</script>
> 165
> 166
> 167 <dd>t.
> 168 <span class="currsymbol">access</span>
> 169 <script>explorer.outline.addDecl('access');</script>
> 170
> 171 !T(lay,a,b,...) returns t.get(a,lay).get(b,lay).... if exists
> 172 and has type T. Returns <b>null</b> otherwise<br><br>
> 173
> 174 </dd>
> 175
111 <script>explorer.outline.writeEnabled = true;</script> 176 <script>explorer.outline.writeEnabled = true;</script>
112 <dt><span class="decl">bool 177 <dt><span class="decl">bool
113 <span class="currsymbol">empty</span> 178 <span class="currsymbol">empty</span>
114 <script>explorer.outline.addDecl('empty');</script> 179 <script>explorer.outline.addDecl('empty');</script>
115 180
116 (); 181 ();
117 </span></dt> 182 </span></dt>
................................................................................................................................................................................
148 (); 213 ();
149 </span></dt> 214 </span></dt>
150 <script>explorer.outline.writeEnabled = false;</script> 215 <script>explorer.outline.writeEnabled = false;</script>
151 216
152 217
153 <dd>Regard table as a cons-list and convert to an array<br><br> 218 <dd>Regard table as a cons-list and convert to an array<br><br>
154 219
> 220 </dd>
> 221
> 222 <script>explorer.outline.writeEnabled = true;</script>
> 223 <dt><span class="decl">Tuple!(string,string,Value)[]
> 224 <span class="currsymbol">direct_entries</span>
> 225 <script>explorer.outline.addDecl('direct_entries');</script>
> 226
> 227 ();
> 228 </span></dt>
> 229 <script>explorer.outline.writeEnabled = false;</script>
> 230
> 231
> 232 <dd>Get the list of direct entries ignoring prototypes in sorted order<br><br>
> 233
> 234 </dd>
> 235
> 236 <script>explorer.outline.writeEnabled = true;</script>
> 237 <dt><span class="decl">Tuple!(string,string,Value)[]
> 238 <span class="currsymbol">entries</span>
> 239 <script>explorer.outline.addDecl('entries');</script>
> 240
> 241 ();
> 242 </span></dt>
> 243 <script>explorer.outline.writeEnabled = false;</script>
> 244
> 245
> 246 <dd>Get the whole list of observable
> 247 <span class="currsymbol">entries</span>
> 248 <script>explorer.outline.addDecl('entries');</script>
> 249
> 250 in unspecified order<br><br>
> 251
155 </dd> 252 </dd>
156 </dl> 253 </dl>
157 <script>explorer.outline.decSymbolLevel();</script> 254 <script>explorer.outline.decSymbolLevel();</script>
158 255
159 256
160 </dd> 257 </dd>
161 </dl> 258 </dl>
................................................................................................................................................................................
162 <script>explorer.outline.decSymbolLevel();</script> 259 <script>explorer.outline.decSymbolLevel();</script>
163 260
164 261
165 </td></tr> 262 </td></tr>
166 <tr><td id="docfooter"> 263 <tr><td id="docfooter">
167 Page was generated with 264 Page was generated with
168 <img src="candydoc/img/candydoc.gif" style="vertical-ali 265 <img src="candydoc/img/candydoc.gif" style="vertical-ali
169 on Wed Nov 24 21:12:49 2010 | 266 on Thu Nov 25 12:15:07 2010
170 267
171 </td></tr> 268 </td></tr>
172 </table> 269 </table>
173 </div> 270 </div>
174 <script> 271 <script>
175 explorer.packageExplorer.addModule("index"); 272 explorer.packageExplorer.addModule("index");
176 explorer.packageExplorer.addModule("main"); 273 explorer.packageExplorer.addModule("main");