http://dlang.org/expression.html#FunctionLiteral

Function parameters/variables are declared in D using "ReturnType function(ParameterTypes) symbol". "function" is a keyword here, it can be swapped for "delegate" to get, em, delegates.

In your case something like "void function(int) callback" will do.

Reply via email to