[dmd-beta] rvalue references

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Apr 12 14:41:26 PDT 2012


On 4/12/12, Michel Fortin <michel.fortin at michelf.com> wrote:
> Even if declaring C functions with ref is allowed, it can sometime be a
> problem to declare C functions like that. Not only it changes the usage, but
> also it's not too rare to see pointer parameters like this accepting a null
> pointer as a way to make the parameter optional, which ref won't let you do.

For C, yes, but for C++ wrappers it's usually the D wrapper code that
implements default arguments, not the C function declarations.


More information about the dmd-beta mailing list