From c06866a6fc3830001e0d98c2e0e461fe58cf3ff8 Mon Sep 17 00:00:00 2001 From: KirkMcDonald Date: Thu, 26 Oct 2006 23:48:57 +0000 Subject: [PATCH] Tiny doc update git-svn-id: http://svn.dsource.org/projects/pyd/trunk@42 1df65b71-e716-0410-9316-ac55df2b1602 --- html_doc/class_wrapping.html | 2 +- html_doc/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html_doc/class_wrapping.html b/html_doc/class_wrapping.html index 31b0ca2..35d5bde 100644 --- a/html_doc/class_wrapping.html +++ b/html_doc/class_wrapping.html @@ -37,7 +37,7 @@

Class wrapping

static void def(alias fn, char[] name = symbolnameof!(fn), fn_t = typeof(&fn)) ();
This wraps a method of the class. It functions exactly like the def function used to wrap regular functions, 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.)
-
static void prop(alias fn, char[] name, bool RO = false) ();
+
static void prop(alias fn, char[] name = symbolnameof!(fn), bool RO = false) ();
This wraps a property. See the examples below for more details.