Changeset 187
- Timestamp:
- 08/01/07 15:04:41 (1 year ago)
- Files:
-
- trunk/docs/minid.compiler.html (modified) (1 diff)
- trunk/docs/minid.minid.html (modified) (1 diff)
- trunk/docs/minid.types.html (modified) (7 diffs)
- trunk/docs/minid.utils.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/docs/minid.compiler.html
r186 r187 163 163 Page was generated with 164 164 <img src="candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px"> 165 on Wed Aug 1 1 3:47:152007165 on Wed Aug 1 15:04:31 2007 166 166 167 167 </td></tr> trunk/docs/minid.minid.html
r185 r187 417 417 Page was generated with 418 418 <img src="candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px"> 419 on Wed Aug 1 1 3:47:152007419 on Wed Aug 1 15:04:31 2007 420 420 421 421 </td></tr> trunk/docs/minid.types.html
r186 r187 1111 1111 This is a closure, that is a function and all the environment it needs to execute correctly. 1112 1112 It can hold either a MiniD closure (a "script closure"), or a reference to a native D function 1113 (a "native closure"). In most cases this distinction is transparent, except with coroutines. 1114 Coroutines can only be created with script closures. 1113 (a "native closure"). In virtually all cases this distinction is transparent, except when it 1114 comes to coroutines. You cannot yield out of a coroutine across the boundary of a native function 1115 call. 1115 1116 <br><br> 1116 1117 … … 1166 1167 an MDValue which represents the thread from which this closure was called, and the number of parameters 1167 1168 (not including the context 'this' parameter, which is always present) with which the function was called. 1168 The MDState parameter contains all the parameter which were passed to the function, as well as being a1169 The MDState parameter contains all the parameters which were passed to the function, as well as being a 1169 1170 very important interface through which much of the native API is used. Native functions return an integer, 1170 which is how many values it isreturning (which were pushed onto the MDState's stack prior to returning).1171 which is how many values they are returning (which were pushed onto the MDState's stack prior to returning). 1171 1172 1172 1173 <br><br> … … 1660 1661 <script>explorer.outline.writeEnabled = true;</script> 1661 1662 <dt><span class="decl">void 1663 <span class="currsymbol">sort</span> 1664 <script>explorer.outline.addDecl('sort');</script> 1665 1666 (bool delegate(MDValue , MDValue ) <span class="funcparam">predicate</span>); 1667 </span></dt> 1668 <script>explorer.outline.writeEnabled = false;</script> 1669 1670 1671 <dd>Sorts the array, using a custom <span class="funcparam">predicate</span>. This <span class="funcparam">predicate</span> takes two values and should return '<b>true</b>' 1672 if the first is less than the second, and '<b>false</b>' otherwise. 1673 1674 <br><br> 1675 1676 </dd> 1677 1678 <script>explorer.outline.writeEnabled = true;</script> 1679 <dt><span class="decl">void 1662 1680 <span class="currsymbol">reverse</span> 1663 1681 <script>explorer.outline.addDecl('reverse');</script> … … 2805 2823 This is really just a name and the code for the top-level function of the module. This can 2806 2824 be serialized and deserialized using the minid.utils serialization protocol. This can also 2807 be loaded by the MD GlobalStateclass, but that's a very low-level API.2825 be loaded by the MDContext class, but that's a very low-level API. 2808 2826 <br><br> 2809 2827 … … 3053 3071 3054 3072 3055 <dd>An instance of the above struct. You can access 3056 <span class="currsymbol">globals</span> 3057 <script>explorer.outline.addDecl('globals');</script> 3058 3059 by writing things like "MDGlobalState(). 3060 <span class="currsymbol">globals</span> 3061 <script>explorer.outline.addDecl('globals');</script> 3062 3063 ["x"d] = 5". 3073 <dd>An instance of the above struct. You can access globals by writing things like "context.globals["x"d] = 5". 3064 3074 3065 3075 <br><br> … … 3411 3421 3412 3422 <dd>Construct a new thread. A default thread of execution, the 'main thread', is created for 3413 you by MD GlobalState, so you'll really only need this for creating coroutines.3423 you by MDContext, so you'll really only need this for creating coroutines. 3414 3424 <br><br> 3415 3425 If you pass a script function closure to this constructor, this thread will be a coroutine. It … … 4492 4502 Page was generated with 4493 4503 <img src="candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px"> 4494 on Wed Aug 1 1 3:47:1420074504 on Wed Aug 1 15:04:30 2007 4495 4505 4496 4506 </td></tr> trunk/docs/minid.utils.html
r186 r187 584 584 Page was generated with 585 585 <img src="candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px"> 586 on Wed Aug 1 1 3:47:152007586 on Wed Aug 1 15:04:31 2007 587 587 588 588 </td></tr>
