The CAPI Manifesto
newshound2 at digitalmars.com
Sun Oct 16 23:28:23 PDT 2011
On 10/16/2011 11:21 PM, Vladimir Panteleev wrote:
> On Mon, 17 Oct 2011 08:24:26 +0300, Gor Gyolchanyan
> <gor.f.gyolchanyan at gmail.com> wrote:
>> For example, replace by-pointer parameter declarations with _out_
>> parameters when applicable (the underlying function signature is the
> Note that this would make it nearly impossible to pass null pointers. A human
> would need to decide if a null pointer can be specified, or the converter would
> need to be aware of proprietary extensions which specify such things (e.g.
> Microsoft's __in).
Right. You could also annotate C API functions with pure, @safe, etc., but you'd
have to be very careful that those functions actually were that way, and would
not violate those attributes in the future.
More information about the Digitalmars-d