jacob-carlborg / dstep

A tool for converting C and Objective-C headers to D modules
204 stars 37 forks source link

Parameter named `this` kept unchanged #252

Open buckle2000 opened 4 years ago

buckle2000 commented 4 years ago

dstep would generate

extern (D) auto uiControl(T)(auto ref T this)
{
    return cast(uiControl*) this;
}

for ui.h in https://github.com/andlabs/libui a0a980712e8057d86747fcf52b67f59b56932f5a

However, this is a keyword in D.