Commits

ariovistus committed 7b82943

Edited online

Comments (0)

Files changed (1)

 Exposing D functions to Python is easy! The heart of Pyd's function wrapping features is the def template function:
 {{{
 #!d
-void def(alias fn, char[] name = symbolnameof!(fn), fn_t = typeof(&fn), uint MIN_ARGS = minArgs!(fn)) (char[] docstring="");
+void def(alias fn, char[] name = symbolnameof!(fn), fn_t = typeof(&fn), uint MIN_ARGS = minArgs!(fn)) (string docstring="");
 }}}
 
 * **fn** is the function to wrap. Note that this is an alias parameter. def is only capable of wrapping full-fledged functions, not function pointers, function literals, or delegates.