Higher abstraction level for calling C functions

Denis Shelomovskij verylonglogin.reg at gmail.com
Mon Jan 30 02:53:25 PST 2012


30.01.2012 8:59, Kagamin пишет:
>> static assert(__traits(compiles, HANDLE.init is null));
> hmm... What declaration of HANDLE do you use?

Wrapper knows nothing about non-standard types, but in `CreateFileW` the 
last argument is `__(in?) HANDLE hTemplateFile`, so it is an optional 
parameter (can be `null`) and wrapper ensures that it isn't a mistake 
and `HANDLE` is nullable.


More information about the Digitalmars-d mailing list