Changeset 317
- Timestamp:
- 06/27/08 20:42:38 (2 months ago)
- Files:
-
- branches/v2/docs/candydoc/modules.ddoc (modified) (1 diff)
- branches/v2/docs/minid.compiler.html (modified) (19 diffs)
- branches/v2/docs/minid.minid.html (modified) (10 diffs)
- branches/v2/docs/minid.types.html (modified) (35 diffs)
- branches/v2/docs/minid.utils.html (modified) (3 diffs)
- branches/v2/mdcl.opt (modified) (previous)
- branches/v2/minid/compiler.d (modified) (6 diffs)
- branches/v2/minid/types.d (modified) (2 diffs)
- branches/v2/minidc.d (modified) (1 diff)
- branches/v2/samples/simple.md (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/v2/docs/candydoc/modules.ddoc
r277 r317 1 1 MODULES = 2 $(MODULE_FULL minid.minid) 3 $(MODULE_FULL minid.types) 4 $(MODULE_FULL minid.compiler) 5 $(MODULE_FULL minid.utils) 2 6 $(MODULE_FULL minid.bind) branches/v2/docs/minid.compiler.html
r277 r317 52 52 <dl> 53 53 <script>explorer.outline.writeEnabled = true;</script> 54 <dt><span class="decl">MDModuleDef55 <span class="currsymbol">compileModule</span>56 <script>explorer.outline.addDecl('compileModule');</script>57 58 (char[] <span class="funcparam">filename</span>);59 </span></dt>60 <script>explorer.outline.writeEnabled = false;</script>61 62 63 <dd>Compile a source code file into a binary module. Takes the path to the source file and returns64 the compiled module, which can be loaded into a context.65 <br><br>66 You shouldn't have to deal with this function that much. Most of the time the compilation of67 modules should be handled for you by the import system in MDContext.68 <br><br>69 70 </dd>71 72 <script>explorer.outline.writeEnabled = true;</script>73 <dt><span class="decl">MDModuleDef74 <span class="currsymbol">compileModule</span>75 <script>explorer.outline.addDecl('compileModule');</script>76 77 (dchar[] <span class="funcparam">source</span>, char[] <span class="funcparam">name</span>);78 </span></dt>79 <script>explorer.outline.writeEnabled = false;</script>80 81 82 <dd>Compile a module from a string containing the <span class="funcparam">source</span> code.83 <br><br>84 <b>Params:</b><br>85 <table><tr>86 <td nowrap valign="top" style="padding-right: 8px">dchar[] <span class="funcparam">source</span></td>87 88 89 <td>The <span class="funcparam">source</span> code as a string.</td></tr>90 <tr>91 <td nowrap valign="top" style="padding-right: 8px">char[] <span class="funcparam">name</span></td>92 93 94 <td>The <span class="funcparam">name</span> which should be used as the <span class="funcparam">source</span> <span class="funcparam">name</span> in compiler error message. Takes the95 place of the filename when compiling from a <span class="funcparam">source</span> file.</td></tr>96 </table><br>97 <b>Returns:</b><br>98 The compiled module.99 <br><br>100 101 </dd>102 103 <script>explorer.outline.writeEnabled = true;</script>104 <dt><span class="decl">MDFuncDef105 <span class="currsymbol">compileStatements</span>106 <script>explorer.outline.addDecl('compileStatements');</script>107 108 (dchar[] <span class="funcparam">source</span>, char[] <span class="funcparam">name</span>);109 </span></dt>110 <script>explorer.outline.writeEnabled = false;</script>111 112 113 <dd>Compile a list of statements into a function body which takes a variadic number of arguments. Kind114 of like a module without the module statement.115 <br><br>116 <b>Params:</b><br>117 <table><tr>118 <td nowrap valign="top" style="padding-right: 8px">dchar[] <span class="funcparam">source</span></td>119 120 121 <td>The <span class="funcparam">source</span> code as a string.</td></tr>122 <tr>123 <td nowrap valign="top" style="padding-right: 8px">char[] <span class="funcparam">name</span></td>124 125 126 <td>The <span class="funcparam">name</span> to use as the <span class="funcparam">source</span> <span class="funcparam">name</span> for compilation errors.</td></tr>127 </table><br>128 <b>Returns:</b><br>129 The compiled function.130 <br><br>131 132 </dd>133 134 <script>explorer.outline.writeEnabled = true;</script>135 <dt><span class="decl">MDFuncDef136 <span class="currsymbol">compileExpression</span>137 <script>explorer.outline.addDecl('compileExpression');</script>138 139 (dchar[] <span class="funcparam">source</span>, char[] <span class="funcparam">name</span>);140 </span></dt>141 <script>explorer.outline.writeEnabled = false;</script>142 143 144 <dd>Compile a single expression into a function which returns the value of that expression when called.145 <br><br>146 <b>Params:</b><br>147 <table><tr>148 <td nowrap valign="top" style="padding-right: 8px">dchar[] <span class="funcparam">source</span></td>149 150 151 <td>The <span class="funcparam">source</span> code as a string.</td></tr>152 <tr>153 <td nowrap valign="top" style="padding-right: 8px">char[] <span class="funcparam">name</span></td>154 155 156 <td>The <span class="funcparam">name</span> to use as the <span class="funcparam">source</span> <span class="funcparam">name</span> for compilation errors.</td></tr>157 </table><br>158 <b>Returns:</b><br>159 The compiled function.160 <br><br>161 162 </dd>163 164 <script>explorer.outline.writeEnabled = true;</script>165 <dt><span class="decl">MDValue166 <span class="currsymbol">loadJSON</span>167 <script>explorer.outline.addDecl('loadJSON');</script>168 169 (dchar[] <span class="funcparam">source</span>);170 </span></dt>171 <script>explorer.outline.writeEnabled = false;</script>172 173 174 <dd>Parses a JSON string into a MiniD value and returns that value. Just like the MiniD baselib175 function.176 <br><br>177 178 </dd>179 180 <script>explorer.outline.writeEnabled = true;</script>181 54 <dt><span class="decl">class 182 55 <span class="currsymbol">AstNode</span> … … 594 467 595 468 <script>explorer.outline.writeEnabled = true;</script> 469 <dt><span class="decl">uint 470 <span class="currsymbol">typeMask</span> 471 <script>explorer.outline.addDecl('typeMask');</script> 472 473 ; 474 </span></dt> 475 <script>explorer.outline.writeEnabled = false;</script> 476 477 478 <dd>The type mask of the parameter, that is, what basic types can be passed to it. 479 Defaults to TypeMask.Any, which allows any type to be passed. This should not be 480 set to 0; the codegen does not check for this so it's up to you. 481 482 <br><br> 483 484 </dd> 485 486 <script>explorer.outline.writeEnabled = true;</script> 487 <dt><span class="decl">Expression[] 488 <span class="currsymbol">objectTypes</span> 489 <script>explorer.outline.addDecl('objectTypes');</script> 490 491 ; 492 </span></dt> 493 <script>explorer.outline.writeEnabled = false;</script> 494 495 496 <dd>If typeMask allows objects, this can be a list of expressions which should evaluate 497 at runtime to object types that this parameter can accept. This is an optional 498 list. If typeMask does not allow objects, this should be empty. 499 500 <br><br> 501 502 </dd> 503 504 <script>explorer.outline.writeEnabled = true;</script> 596 505 <dt><span class="decl">Expression 597 506 <span class="currsymbol">defValue</span> … … 792 701 793 702 <script>explorer.outline.writeEnabled = true;</script> 794 <dt><span class="decl">static Param [] 703 <dt><span class="decl">static FuncDef 704 <span class="currsymbol">parseHaskell</span> 705 <script>explorer.outline.addDecl('parseHaskell');</script> 706 707 (Lexer <span class="funcparam">l</span>); 708 </span></dt> 709 <script>explorer.outline.writeEnabled = false;</script> 710 711 712 <dd>Parse a Haskell-style function literal, like "\f -> f + 1" or "\(a, b) -> a(b)". 713 714 <br><br> 715 716 </dd> 717 718 <script>explorer.outline.writeEnabled = true;</script> 719 <dt><span class="decl">static Param[] 795 720 <span class="currsymbol">parseParams</span> 796 721 <script>explorer.outline.addDecl('parseParams');</script> … … 821 746 822 747 </dd> 748 749 <script>explorer.outline.writeEnabled = true;</script> 750 <dt><span class="decl">static uint 751 <span class="currsymbol">parseType</span> 752 <script>explorer.outline.addDecl('parseType');</script> 753 754 (Lexer <span class="funcparam">l</span>, out Expression[] <span class="funcparam">objectTypes</span>); 755 </span></dt> 756 <script>explorer.outline.writeEnabled = false;</script> 757 758 759 <dd>Parse a parameter type. This corresponds to the Type element of the grammar. 760 Returns the type mask, as well as an optional list of object types that this 761 parameter can accept in the <span class="funcparam">objectTypes</span> parameter. 762 763 <br><br> 764 765 </dd> 823 766 </dl> 824 767 <script>explorer.outline.decSymbolLevel();</script> … … 1262 1205 </table><br> 1263 1206 1207 </dd> 1208 </dl> 1209 <script>explorer.outline.decSymbolLevel();</script> 1210 1211 1212 </dd> 1213 1214 <script>explorer.outline.writeEnabled = true;</script> 1215 <dt><span class="decl">class 1216 <span class="currsymbol">AssertStatement</span> 1217 <script>explorer.outline.addDecl('AssertStatement');</script> 1218 1219 : minid.compiler.Statement; 1220 </span></dt> 1221 <script>explorer.outline.writeEnabled = false;</script> 1222 1223 1224 <dd>This node represents an assertion statement. 1225 <br><br> 1226 1227 1228 <script>explorer.outline.incSymbolLevel();</script> 1229 <dl> 1230 <script>explorer.outline.writeEnabled = true;</script> 1231 <dt><span class="decl">Expression 1232 <span class="currsymbol">cond</span> 1233 <script>explorer.outline.addDecl('cond');</script> 1234 1235 ; 1236 </span></dt> 1237 <script>explorer.outline.writeEnabled = false;</script> 1238 1239 1240 <dd>A required expression that is the condition checked by the assertion. 1241 1242 <br><br> 1243 1244 </dd> 1245 1246 <script>explorer.outline.writeEnabled = true;</script> 1247 <dt><span class="decl">Expression 1248 <span class="currsymbol">msg</span> 1249 <script>explorer.outline.addDecl('msg');</script> 1250 1251 ; 1252 </span></dt> 1253 <script>explorer.outline.writeEnabled = false;</script> 1254 1255 1256 <dd>An optional message that will be used if the assertion fails. This member 1257 can be <b>null</b>, in which case a message will be generated for the assertion 1258 based on its location. If it's not <b>null</b>, it must evaluate to a string. 1259 1260 <br><br> 1261 1262 </dd> 1263 1264 <script>explorer.outline.writeEnabled = true;</script> 1265 <dt><span class="decl">this(Location <span class="funcparam">location</span>, Location <span class="funcparam">endLocation</span>, Expression <span class="funcparam">cond</span>, Expression <span class="funcparam">msg</span> = null); 1266 </span></dt> 1267 <script>explorer.outline.writeEnabled = false;</script> 1268 1269 1270 <dd><br><br> 1264 1271 </dd> 1265 1272 </dl> … … 4623 4630 4624 4631 <script>explorer.outline.incSymbolLevel();</script> 4625 <dl></dl> 4632 <dl> 4633 <script>explorer.outline.writeEnabled = true;</script> 4634 <dt><span class="decl">this(Location <span class="funcparam">location</span>, Location <span class="funcparam">endLocation</span>, Expression <span class="funcparam">left</span>, Expression <span class="funcparam">right</span>); 4635 </span></dt> 4636 <script>explorer.outline.writeEnabled = false;</script> 4637 4638 4639 <dd><br><br> 4640 </dd> 4641 </dl> 4626 4642 <script>explorer.outline.decSymbolLevel();</script> 4627 4643 … … 4644 4660 4645 4661 <script>explorer.outline.incSymbolLevel();</script> 4646 <dl></dl> 4662 <dl> 4663 <script>explorer.outline.writeEnabled = true;</script> 4664 <dt><span class="decl">this(Location <span class="funcparam">location</span>, Location <span class="funcparam">endLocation</span>, Expression <span class="funcparam">left</span>, Expression <span class="funcparam">right</span>); 4665 </span></dt> 4666 <script>explorer.outline.writeEnabled = false;</script> 4667 4668 4669 <dd><br><br> 4670 </dd> 4671 </dl> 4647 4672 <script>explorer.outline.decSymbolLevel();</script> 4648 4673 … … 4665 4690 4666 4691 <script>explorer.outline.incSymbolLevel();</script> 4667 <dl></dl> 4692 <dl> 4693 <script>explorer.outline.writeEnabled = true;</script> 4694 <dt><span class="decl">this(Location <span class="funcparam">location</span>, Location <span class="funcparam">endLocation</span>, Expression <span class="funcparam">left</span>, Expression <span class="funcparam">right</span>); 4695 </span></dt> 4696 <script>explorer.outline.writeEnabled = false;</script> 4697 4698 4699 <dd><br><br> 4700 </dd> 4701 </dl> 4668 4702 <script>explorer.outline.decSymbolLevel();</script> 4669 4703 … … 5388 5422 5389 5423 to be used when calling the function. This corresponds to 'x' in 5390 the expression "f(with x)". If this member is <b>null</b>, there is no custom 5391 5424 the expression "f(with x)". If this member is <b>null</b>, a 5392 5425 <span class="currsymbol">context</span> 5393 5426 <script>explorer.outline.addDecl('context');</script> 5394 5427 5395 and the 5396 <span class="currsymbol">context</span> 5397 <script>explorer.outline.addDecl('context');</script> 5398 5399 will be determined automatically. 5428 of '<b>null</b>' will 5429 be passed to the function. 5400 5430 5401 5431 <br><br> … … 5716 5746 5717 5747 <script>explorer.outline.writeEnabled = true;</script> 5718 <dt><span class="decl">static MDValue 5748 <dt><span class="decl">static MDValue 5719 5749 <span class="currsymbol">parseJSON</span> 5720 5750 <script>explorer.outline.addDecl('parseJSON');</script> … … 5892 5922 5893 5923 <script>explorer.outline.writeEnabled = true;</script> 5894 <dt><span class="decl">static MDValue 5924 <dt><span class="decl">static MDValue 5895 5925 <span class="currsymbol">parseJSON</span> 5896 5926 <script>explorer.outline.addDecl('parseJSON');</script> … … 5971 6001 5972 6002 <script>explorer.outline.writeEnabled = true;</script> 5973 <dt><span class="decl">static MDValue 6003 <dt><span class="decl">static MDValue 5974 6004 <span class="currsymbol">parseJSON</span> 5975 6005 <script>explorer.outline.addDecl('parseJSON');</script> … … 6153 6183 6154 6184 <script>explorer.outline.writeEnabled = true;</script> 6155 <dt><span class="decl">static MDValue 6185 <dt><span class="decl">static MDValue 6156 6186 <span class="currsymbol">parseJSON</span> 6157 6187 <script>explorer.outline.addDecl('parseJSON');</script> … … 6232 6262 6233 6263 <script>explorer.outline.writeEnabled = true;</script> 6234 <dt><span class="decl">static MDValue 6264 <dt><span class="decl">static MDValue 6235 6265 <span class="currsymbol">parseJSON</span> 6236 6266 <script>explorer.outline.addDecl('parseJSON');</script> … … 6311 6341 6312 6342 <script>explorer.outline.writeEnabled = true;</script> 6313 <dt><span class="decl">static MDValue 6343 <dt><span class="decl">static MDValue 6314 6344 <span class="currsymbol">parseJSON</span> 6315 6345 <script>explorer.outline.addDecl('parseJSON');</script> … … 6376 6406 <span class="currsymbol">parse</span> 6377 6407 <script>explorer.outline.addDecl('parse');</script> 6408 6409 (Lexer <span class="funcparam">l</span>); 6410 </span></dt> 6411 <script>explorer.outline.writeEnabled = false;</script> 6412 6413 6414 <dd><br><br> 6415 </dd> 6416 6417 <script>explorer.outline.writeEnabled = true;</script> 6418 <dt><span class="decl">static FuncLiteralExp 6419 <span class="currsymbol">parseHaskell</span> 6420 <script>explorer.outline.addDecl('parseHaskell');</script> 6378 6421 6379 6422 (Lexer <span class="funcparam">l</span>); … … 6852 6895 6853 6896 <script>explorer.outline.writeEnabled = true;</script> 6854 <dt><span class="decl">static MDValue 6897 <dt><span class="decl">static MDValue 6855 6898 <span class="currsymbol">parseJSON</span> 6856 6899 <script>explorer.outline.addDecl('parseJSON');</script> … … 6931 6974 6932 6975 <script>explorer.outline.writeEnabled = true;</script> 6933 <dt><span class="decl">static MDValue 6976 <dt><span class="decl">static MDValue 6934 6977 <span class="currsymbol">parseJSON</span> 6935 6978 <script>explorer.outline.addDecl('parseJSON');</script> … … 7305 7348 Page was generated with 7306 7349 <img src="candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px"> 7307 on Thu Feb 14 15:53:0420087350 on Fri Jun 13 09:57:36 2008 7308 7351 7309 7352 </td></tr> branches/v2/docs/minid.minid.html
r277 r317 220 220 <script>explorer.outline.writeEnabled = true;</script> 221 221 <dt><span class="decl"> 222 <span class="currsymbol">Time</span> 223 <script>explorer.outline.addDecl('Time');</script> 224 225 </span></dt> 226 <script>explorer.outline.writeEnabled = false;</script> 227 228 229 <dd> 230 <span class="currsymbol">Time</span> 231 <script>explorer.outline.addDecl('Time');</script> 232 233 functions. 234 235 <br><br> 236 237 </dd> 238 239 <script>explorer.outline.writeEnabled = true;</script> 240 <dt><span class="decl"> 222 241 <span class="currsymbol">Safe</span> 223 242 <script>explorer.outline.addDecl('Safe');</script> … … 227 246 228 247 229 <dd>This flag is an OR of Array, Char, Math, String, Table, and Regexp. It represents all230 the libraries which are "safe", i.e. malicious scripts would not be able to use the IO248 <dd>This flag is an OR of Array, Char, Math, String, Table, Regexp, and Time. It represents 249 all the libraries which are "safe", i.e. malicious scripts would not be able to use the IO 231 250 or OS libraries to do bad things. 232 251 … … 264 283 <script>explorer.outline.addDecl('NewContext');</script> 265 284 266 (uint <span class="funcparam">libs</span> = cast(uint)cast(MDStdlib) 255);285 (uint <span class="funcparam">libs</span> = cast(uint)cast(MDStdlib)511); 267 286 </span></dt> 268 287 <script>explorer.outline.writeEnabled = false;</script> … … 270 289 271 290 <dd>Initializes a new MiniD context and loads any specified standard libraries into it. Each new 272 context is also given a new MDState as its main thread. 291 context is also given a new MDState as its main thread. The base library is always loaded into 292 the context. 273 293 <br><br> 274 294 <b>Params:</b><br> … … 292 312 <script>explorer.outline.addDecl('loadModuleString');</script> 293 313 294 (MDState <span class="funcparam">s</span>, dchar[] <span class="funcparam">source</span>, MDValue [] <span class="funcparam">params</span> = null,char[] <span class="funcparam">name</span> = "<module string>");314 (MDState <span class="funcparam">s</span>, dchar[] <span class="funcparam">source</span>, char[] <span class="funcparam">name</span> = "<module string>"); 295 315 </span></dt> 296 316 <script>explorer.outline.writeEnabled = false;</script> … … 311 331 312 332 <td>The <span class="funcparam">source</span> code of the module, exactly as it would appear in a file.</td></tr> 313 <tr>314 <td nowrap valign="top" style="padding-right: 8px">MDValue [] <span class="funcparam">params</span></td>315 316 317 <td>An optional list of parameters. These are passed as the variadic parameters318 to the top-level module function. Defaults to <b>null</b> (no parameters).</td></tr>319 333 <tr> 320 334 <td nowrap valign="top" style="padding-right: 8px">char[] <span class="funcparam">name</span></td> … … 335 349 <script>explorer.outline.addDecl('loadStatementString');</script> 336 350 337 (MDState <span class="funcparam">s</span>, dchar[] <span class="funcparam">source</span>, MDNamespace <span class="funcparam">ns</span> = cast(MDNamespace)null, MDValue [] <span class="funcparam">params</span> = null, char[] <span class="funcparam">name</span> = "<statement string>");351 (MDState <span class="funcparam">s</span>, dchar[] <span class="funcparam">source</span>, MDNamespace <span class="funcparam">ns</span> = cast(MDNamespace)null, MDValue[] <span class="funcparam">params</span> = null, char[] <span class="funcparam">name</span> = "<statement string>"); 338 352 </span></dt> 339 353 <script>explorer.outline.writeEnabled = false;</script> … … 362 376 Defaults to the global namespace of the state'<span class="funcparam">s</span> owning context.</td></tr> 363 377 <tr> 364 <td nowrap valign="top" style="padding-right: 8px">MDValue [] <span class="funcparam">params</span></td>378 <td nowrap valign="top" style="padding-right: 8px">MDValue[] <span class="funcparam">params</span></td> 365 379 366 380 … … 383 397 384 398 <script>explorer.outline.writeEnabled = true;</script> 385 <dt><span class="decl">MDValue 399 <dt><span class="decl">MDValue 386 400 <span class="currsymbol">eval</span> 387 401 <script>explorer.outline.addDecl('eval');</script> … … 568 582 Page was generated with 569 583 <img src="candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px"> 570 on Thu Feb 14 15:53:032008584 on Fri Jun 13 09:57:35 2008 571 585 572 586 </td></tr> branches/v2/docs/minid.types.html
r277 r317 136 136 137 137 <script>explorer.outline.writeEnabled = true;</script> 138 <dt><span class="decl">this(MDValue * <span class="funcparam">val</span>);138 <dt><span class="decl">this(MDValue* <span class="funcparam">val</span>); 139 139 </span></dt> 140 140 <script>explorer.outline.writeEnabled = false;</script> … … 263 263 264 264 <script>explorer.outline.writeEnabled = true;</script> 265 <dt><span class="decl">this(Location <span class="funcparam">loc</span>, MDValue * <span class="funcparam">val</span>);265 <dt><span class="decl">this(Location <span class="funcparam">loc</span>, MDValue* <span class="funcparam">val</span>); 266 266 </span></dt> 267 267 <script>explorer.outline.writeEnabled = false;</script> … … 406 406 <script>explorer.outline.addDecl('opEquals');</script> 407 407 408 (MDValue * <span class="funcparam">other</span>);408 (MDValue* <span class="funcparam">other</span>); 409 409 </span></dt> 410 410 <script>explorer.outline.writeEnabled = false;</script> … … 423 423 <script>explorer.outline.addDecl('opCmp');</script> 424 424 425 (MDValue * <span class="funcparam">other</span>);425 (MDValue* <span class="funcparam">other</span>); 426 426 </span></dt> 427 427 <script>explorer.outline.writeEnabled = false;</script> … … 445 445 <script>explorer.outline.addDecl('compare');</script> 446 446 447 (MDValue * <span class="funcparam">other</span>);447 (MDValue* <span class="funcparam">other</span>); 448 448 </span></dt> 449 449 <script>explorer.outline.writeEnabled = false;</script> … … 857 857 This holds an immutable string. The hash for this string is calculated once upon creation, 858 858 improving speed when used as the key to an AA (which, in MiniD, is very often -- all namespaces 859 use MDStrings as keys). Immutability also avoids the problem of using a string as a n AAkey859 use MDStrings as keys). Immutability also avoids the problem of using a string as a key 860 860 and then changing it, which would result in undefined behavior. 861 861 <br><br> … … 1196 1196 <script>explorer.outline.writeEnabled = true;</script> 1197 1197 <dt><span class="decl">this(MDNamespace <span class="funcparam">environment</span>, int delegate(MDState, uint) <span class="funcparam">dg</span>, dchar[] <span class="funcparam">name</span>, MDValue[] <span class="funcparam">upvals</span> = null); 1198 <br>this(MDNamespace <span class="funcparam">environment</span>, int (* <span class="funcparam">func</span>)(MDState, uint), dchar[] <span class="funcparam">name</span>, MDValue[] <span class="funcparam">upvals</span> = null);1198 <br>this(MDNamespace <span class="funcparam">environment</span>, int function(MDState, uint) <span class="funcparam">func</span>, dchar[] <span class="funcparam">name</span>, MDValue[] <span class="funcparam">upvals</span> = null); 1199 1199 </span></dt> 1200 1200 <script>explorer.outline.writeEnabled = false;</script> … … 1229 1229 <td>The <span class="funcparam">name</span> of the function, which will be used in error messages and when its toString is called.</td></tr> 1230 1230 <tr> 1231 <td nowrap valign="top" style="padding-right: 8px">MDValue [] <span class="funcparam">upvals</span></td>1231 <td nowrap valign="top" style="padding-right: 8px">MDValue[] <span class="funcparam">upvals</span></td> 1232 1232 1233 1233 … … 1508 1508 1509 1509 <script>explorer.outline.writeEnabled = true;</script> 1510 <dt><span class="decl">MDValue *1510 <dt><span class="decl">MDValue* 1511 1511 <span class="currsymbol">opIn_r</span> 1512 1512 <script>explorer.outline.addDecl('opIn_r');</script> … … 1524 1524 1525 1525 <script>explorer.outline.writeEnabled = true;</script> 1526 <dt><span class="decl">MDValue *1526 <dt><span class="decl">MDValue* 1527 1527 <span class="currsymbol">opIndex</span> 1528 1528 <script>explorer.outline.addDecl('opIndex');</script> … … 1726 1726 <script>explorer.outline.addDecl('sort');</script> 1727 1727 1728 (bool delegate(MDValue , MDValue) <span class="funcparam">predicate</span>);1728 (bool delegate(MDValue, MDValue) <span class="funcparam">predicate</span>); 1729 1729 </span></dt> 1730 1730 <script>explorer.outline.writeEnabled = false;</script> … … 1920 1920 1921 1921 <script>explorer.outline.writeEnabled = true;</script> 1922 <dt><span class="decl">MDValue *1922 <dt><span class="decl">MDValue* 1923 1923 <span class="currsymbol">opIndex</span> 1924 1924 <script>explorer.outline.addDecl('opIndex');</script> … … 2098 2098 do not have any intrinsic name associated with them, and sometimes the compiler will generate a 2099 2099 name for an anonymous class. For any classes that you create from native code, though, you'll 2100 probably give nthem a real name.</td></tr>2100 probably give them a real name.</td></tr> 2101 2101 <tr> 2102 2102 <td nowrap valign="top" style="padding-right: 8px">baseClass</td> … … 2148 2148 2149 2149 <script>explorer.outline.writeEnabled = true;</script> 2150 <dt><span class="decl">MDValue *2150 <dt><span class="decl">MDValue* 2151 2151 <span class="currsymbol">opIndex</span> 2152 2152 <script>explorer.outline.addDecl('opIndex');</script> 2153 2153 2154 2154 (MDString <span class="funcparam">index</span>); 2155 <br>MDValue *2155 <br>MDValue* 2156 2156 <span class="currsymbol">opIndex</span> 2157 2157 <script>explorer.outline.addDecl('opIndex');</script> … … 2436 2436 2437 2437 <script>explorer.outline.writeEnabled = true;</script> 2438 <dt><span class="decl">MDValue *2438 <dt><span class="decl">MDValue* 2439 2439 <span class="currsymbol">opIn_r</span> 2440 2440 <script>explorer.outline.addDecl('opIn_r');</script> 2441 2441 2442 2442 (MDString <span class="funcparam">key</span>); 2443 <br>MDValue *2443 <br>MDValue* 2444 2444 <span class="currsymbol">opIn_r</span> 2445 2445 <script>explorer.outline.addDecl('opIn_r');</script> … … 2514 2514 2515 2515 <script>explorer.outline.writeEnabled = true;</script> 2516 <dt><span class="decl">MDValue *2516 <dt><span class="decl">MDValue* 2517 2517 <span class="currsymbol">opIndex</span> 2518 2518 <script>explorer.outline.addDecl('opIndex');</script> 2519 2519 2520 2520 (MDString <span class="funcparam">key</span>); 2521 <br>MDValue *2521 <br>MDValue* 2522 2522 <span class="currsymbol">opIndex</span> 2523 2523 <script>explorer.outline.addDecl('opIndex');</script> … … 2599 2599 <script>explorer.outline.addDecl('opApply');</script> 2600 2600 2601 (int delegate(ref MDString, ref MDValue ) <span class="funcparam">dg</span>);2601 (int delegate(ref MDString, ref MDValue) <span class="funcparam">dg</span>); 2602 2602 </span></dt> 2603 2603 <script>explorer.outline.writeEnabled = false;</script> … … 2693 2693 <dl> 2694 2694 <script>explorer.outline.writeEnabled = true;</script> 2695 <dt><span class="decl">static Location 2695 <dt><span class="decl">static Location 2696 2696 <span class="currsymbol">opCall</span> 2697 2697 <script>explorer.outline.addDecl('opCall');</script> … … 3064 3064 <script>explorer.outline.addDecl('newClosure');</script> 3065 3065 3066 (int delegate(MDState, uint) <span class="funcparam">dg</span>, dchar[] <span class="funcparam">name</span>, MDValue [] <span class="funcparam">upvals</span> = null);3066 (int delegate(MDState, uint) <span class="funcparam">dg</span>, dchar[] <span class="funcparam">name</span>, MDValue[] <span class="funcparam">upvals</span> = null); 3067 3067 <br>final MDClosure 3068 3068 <span class="currsymbol">newClosure</span> 3069 3069 <script>explorer.outline.addDecl('newClosure');</script> 3070 3070 3071 (int (* <span class="funcparam">func</span>)(MDState, uint), dchar[] <span class="funcparam">name</span>, MDValue[] <span class="funcparam">upvals</span> = null);3071 (int function(MDState, uint) <span class="funcparam">func</span>, dchar[] <span class="funcparam">name</span>, MDValue[] <span class="funcparam">upvals</span> = null); 3072 3072 </span></dt> 3073 3073 <script>explorer.outline.writeEnabled = false;</script> … … 3203 3203 <script>explorer.outline.addDecl('initializeModule');</script> 3204 3204 3205 (MDState <span class="funcparam">s</span>, MDModuleDef <span class="funcparam">def</span> , MDValue [] <span class="funcparam">params</span>);3205 (MDState <span class="funcparam">s</span>, MDModuleDef <span class="funcparam">def</span>); 3206 3206 </span></dt> 3207 3207 <script>explorer.outline.writeEnabled = false;</script> … … 3223 3223 <td>The module definition, which was compiled from source or loaded from a file.</td></tr> 3224 3224 <tr> 3225 <td nowrap valign="top" style="padding-right: 8px"> MDValue [] <span class="funcparam">params</span></td>3225 <td nowrap valign="top" style="padding-right: 8px">params</td> 3226 3226 3227 3227 … … 3609 3609 (T...)(ref MDValue <span class="funcparam">val</span>, dchar[] <span class="funcparam">name</span>, int <span class="funcparam">numReturns</span>, T <span class="funcparam">params</span>); 3610 3610 <br>uint 3611 <span class="currsymbol">3612 3611 <span class="currsymbol">callMethod</span> 3613 3612 <script>explorer.outline.addDecl('callMethod');</script> 3614 3613 3615 </span> 3616 <script>explorer.outline.addDecl(' 3617 <span class="currsymbol">callMethod</span> 3618 <script>explorer.outline.addDecl('callMethod');</script> 3619 3620 ');</script> 3621 3622 (T...)(ref MDValue <span class="funcparam"><span class="funcparam">val</span></span>, MDString <span class="funcparam"><span class="funcparam">methodName</span></span>, int <span class="funcparam"><span class="funcparam">numReturns</span></span>, T <span class="funcparam"><span class="funcparam">params</span></span>); 3614 (T...)(ref MDValue <span class="funcparam">val</span>, MDString <span class="funcparam">methodName</span>, int <span class="funcparam">numReturns</span>, T <span class="funcparam">params</span>); 3623 3615 <br>uint 3624 <span class="currsymbol">3625 3616 <span class="currsymbol">callMethodWith</span> 3626 3617 <script>explorer.outline.addDecl('callMethodWith');</script> 3627 3618 3628 </span> 3629 <script>explorer.outline.addDecl(' 3630 <span class="currsymbol">callMethodWith</span> 3631 <script>explorer.outline.addDecl('callMethodWith');</script> 3632 3633 ');</script> 3634 3635 (T...)(ref MDValue <span class="funcparam"><span class="funcparam">val</span></span>, MDString <span class="funcparam"><span class="funcparam">methodName</span></span>, int <span class="funcparam"><span class="funcparam">numReturns</span></span>, MDValue <span class="funcparam"><span class="funcparam">context</span></span>, T <span class="funcparam"><span class="funcparam">params</span></span>); 3619 (T...)(ref MDValue <span class="funcparam">val</span>, MDString <span class="funcparam">methodName</span>, int <span class="funcparam">numReturns</span>, MDValue <span class="funcparam">context</span>, T <span class="funcparam">params</span>); 3636 3620 </span></dt> 3637 3621 <script>explorer.outline.writeEnabled = false;</script> … … 3867 3851 3868 3852 <script>explorer.outline.writeEnabled = true;</script> 3869 <dt><span class="decl">final MDValue []3853 <dt><span class="decl">final MDValue[] 3870 3854 <span class="currsymbol">getParams</span> 3871 3855 <script>explorer.outline.addDecl('getParams');</script> … … 3901 3885 3902 3886 <script>explorer.outline.writeEnabled = true;</script> 3903 <dt><span class="decl">final MDValue []3887 <dt><span class="decl">final MDValue[] 3904 3888 <span class="currsymbol">getAllParams</span> 3905 3889 <script>explorer.outline.addDecl('getAllParams');</script> … … 3996 3980 <script>explorer.outline.addDecl('throwRuntimeException');</script> 3997 3981 3998 (MDValue * <span class="funcparam">val</span>);3982 (MDValue* <span class="funcparam">val</span>); 3999 3983 <br>final void 4000 3984 <span class="currsymbol">throwRuntimeException</span> … … 4124 4108 4125 4109 <script>explorer.outline.writeEnabled = true;</script> 4126 <dt><span class="decl">final MDValue 4110 <dt><span class="decl">final MDValue 4127 4111 <span class="currsymbol">idx</span> 4128 4112 <script>explorer.outline.addDecl('idx');</script> … … 4156 4140 4157 4141 <script>explorer.outline.writeEnabled = true;</script> 4158 <dt><span class="decl">final MDValue 4142 <dt><span class="decl">final MDValue 4159 4143 <span class="currsymbol">len</span> 4160 4144 <script>explorer.outline.addDecl('len');</script> … … 4188 4172 4189 4173 <script>explorer.outline.writeEnabled = true;</script> 4190 <dt><span class="decl">final MDValue 4174 <dt><span class="decl">final MDValue 4191 4175 <span class="currsymbol">slice</span> 4192 4176 <script>explorer.outline.addDecl('slice');</script> … … 4220 4204 4221 4205 <script>explorer.outline.writeEnabled = true;</script> 4222 <dt><span class="decl">final MDValue 4206 <dt><span class="decl">final MDValue 4223 4207 <span class="currsymbol">add</span> 4224 4208 <script>explorer.outline.addDecl('add');</script> 4225 4209 4226 4210 (ref MDValue <span class="funcparam">a</span>, ref MDValue <span class="funcparam">b</span>); 4227 <br>final MDValue 4211 <br>final MDValue 4228 4212 <span class="currsymbol">sub</span> 4229 4213 <script>explorer.outline.addDecl('sub');</script> 4230 4214 4231 4215 (ref MDValue <span class="funcparam">a</span>, ref MDValue <span class="funcparam">b</span>); 4232 <br>final MDValue 4216 <br>final MDValue 4233 4217 <span class="currsymbol">mul</span> 4234 4218 <script>explorer.outline.addDecl('mul');</script> 4235 4219 4236 4220 (ref MDValue <span class="funcparam">a</span>, ref MDValue <span class="funcparam">b</span>); 4237 <br>final MDValue 4221 <br>final MDValue 4238 4222 <span class="currsymbol">div</span> 4239 4223 <script>explorer.outline.addDecl('div');</script> 4240 4224 4241 4225 (ref MDValue <span class="funcparam">a</span>, ref MDValue <span class="funcparam">b</span>); 4242 <br>final MDValue 4226 <br>final MDValue 4243 4227 <span class="currsymbol">mod</span> 4244 4228 <script>explorer.outline.addDecl('mod');</script> … … 4256 4240 4257 4241 <script>explorer.outline.writeEnabled = true;</script> 4258 <dt><span class="decl">final MDValue 4242 <dt><span class="decl">final MDValue 4259 4243 <span class="currsymbol">neg</span> 4260 4244 <script>explorer.outline.addDecl('neg');</script> … … 4308 4292 4309 4293 <script>explorer.outline.writeEnabled = true;</script> 4310 <dt><span class="decl">final MDValue 4294 <dt><span class="decl">final MDValue 4311 4295 <span class="currsymbol">and</span> 4312 4296 <script>explorer.outline.addDecl('and');</script> 4313 4297 4314 4298 (ref MDValue <span class="funcparam">a</span>, ref MDValue <span class="funcparam">b</span>); 4315 <br>final MDValue 4299 <br>final MDValue 4316 4300 <span class="currsymbol">or</span> 4317 4301 <script>explorer.outline.addDecl('or');</script> 4318 4302 4319 4303 (ref MDValue <span class="funcparam">a</span>, ref MDValue <span class="funcparam">b</span>); 4320 <br>final MDValue 4304 <br>final MDValue 4321 4305 <span class="currsymbol">xor</span> 4322 4306 <script>explorer.outline.addDecl('xor');</script> 4323 4307 4324 4308 (ref MDValue <span class="funcparam">a</span>, ref MDValue <span class="funcparam">b</span>); 4325 <br>final MDValue 4309 <br>final MDValue 4326 4310 <span class="currsymbol">shl</span> 4327 4311 <script>explorer.outline.addDecl('shl');</script> 4328 4312 4329 4313 (ref MDValue <span class="funcparam">a</span>, ref MDValue <span class="funcparam">b</span>); 4330 <br>final MDValue 4314 <br>final MDValue 4331 4315 <span class="currsymbol">shr</span> 4332 4316 <script>explorer.outline.addDecl('shr');</script> 4333 4317 4334 4318 (ref MDValue <span class="funcparam">a</span>, ref MDValue <span class="funcparam">b</span>); 4335 <br>final MDValue 4319 <br>final MDValue 4336 4320 <span class="currsymbol">ushr</span> 4337 4321 <script>explorer.outline.addDecl('ushr');</script> … … 4353 4337 4354 4338 <script>explorer.outline.writeEnabled = true;</script> 4355 <dt><span class="decl">final MDValue 4339 <dt><span class="decl">final MDValue 4356 4340 <span class="currsymbol">com</span> 4357 4341 <script>explorer.outline.addDecl('com');</script> … … 4410 4394 4411 4395 <script>explorer.outline.writeEnabled = true;</script> 4412 <dt><span class="decl">final MDValue 4396 <dt><span class="decl">final MDValue 4413 4397 <span class="currsymbol">cat</span> 4414 4398 <script>explorer.outline.addDecl('cat');</script> 4415 4399 4416 (MDValue [] <span class="funcparam">vals</span>);4400 (MDValue[] <span class="funcparam">vals</span>); 4417 4401 </span></dt> 4418 4402 <script>explorer.outline.writeEnabled = false;</script> … … 4431 4415 <script>explorer.outline.addDecl('cateq');</script> 4432 4416 4433 (ref MDValue <span class="funcparam">dest</span>, MDValue [] <span class="funcparam">vals</span>);4417 (ref MDValue <span class="funcparam">dest</span>, MDValue[] <span class="funcparam">vals</span>); 4434 4418 </span></dt> 4435 4419 <script>explorer.outline.writeEnabled = false;</script> … … 4538 4522 Page was generated with 4539 4523 <img src="candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px"> 4540 on Thu Feb 14 15:53:0320084524 on Fri Jun 13 09:57:35 2008 4541 4525 4542 4526 </td></tr> branches/v2/docs/minid.utils.html
r277 r317 230 230 <script>explorer.outline.addDecl('hasUnions');</script> 231 231 232 (T, uint Idx = 0)</span></dt>232 (T,size_t Idx = 0)</span></dt> 233 233 <script>explorer.outline.writeEnabled = false;</script> 234 234 … … 670 670 671 671 </dd> 672 673 <script>explorer.outline.writeEnabled = true;</script> 674 <dt><span class="decl">bool 675 <span class="currsymbol">endsWith</span> 676 <script>explorer.outline.addDecl('endsWith');</script> 677 678 (T)(T[] <span class="funcparam">string</span>, T[] <span class="funcparam">pattern</span>); 679 </span></dt> 680 <script>explorer.outline.writeEnabled = false;</script> 681 682 683 <dd>See if a string ends with another string. Also useful. 684 <br><br> 685 686 </dd> 687 688 <script>explorer.outline.writeEnabled = true;</script> 689 <dt><span class="decl">template 690 <span class="currsymbol">isFinal</span> 691 <script>explorer.outline.addDecl('isFinal');</script> 692 693 (T,char[] funcName)</span></dt> 694 <script>explorer.outline.writeEnabled = false;</script> 695 696 697 <dd>Given a class type and a method name, tells whether that method is final or not. 698 Thanks Tomasz Stachowiak. 699
