Changeset 42
- Timestamp:
- 10/26/06 19:48:57 (2 years ago)
- Files:
-
- trunk/html_doc/class_wrapping.html (modified) (1 diff)
- trunk/html_doc/index.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/html_doc/class_wrapping.html
r41 r42 38 38 <dd>This wraps a method of the class. It functions exactly like the <code>def</code> function used to <a href="func_wrapping.html">wrap regular functions</a>, with one very important difference: There is no support for default arguments. (This is a side-effect of the fact that you cannot call an alias of a method in D, and delegates do not understand default arguments.)</dd> 39 39 40 <dt><code>static void prop(alias <span class="t_arg">fn</span>, char[] <span class="t_arg">name</span> , bool <span class="t_arg">RO</span> = false) ();</code></dt>40 <dt><code>static void prop(alias <span class="t_arg">fn</span>, char[] <span class="t_arg">name</span> = symbolnameof!(fn), bool <span class="t_arg">RO</span> = false) ();</code></dt> 41 41 <dd>This wraps a property. See the examples below for more details. 42 42 <ul> trunk/html_doc/index.html
r35 r42 40 40 <span class="keyword">extern</span> (C) 41 41 <span class="keyword">export void</span> inittestdll() { 42 def!(hello_func , <span class="string">"hello_func"</span>);42 def!(hello_func); 43 43 44 44 module_init(<span class="string">"testdll"</span>);
