C callbacks getting a value of 0! Bug in D?

Johnson Jones via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 28 16:01:45 PDT 2017


On Monday, 28 August 2017 at 22:41:56 UTC, Moritz Maxeiner wrote:
> On Monday, 28 August 2017 at 22:21:18 UTC, Johnson Jones wrote:
>> On Monday, 28 August 2017 at 21:35:27 UTC, Steven 
>> Schveighoffer wrote:
>>> [...]
>>
>> and where are these c_ types defined? The reason I replaced 
>> them was precisely because D was not finding them.
>
> core.stdc.config
>
> , which unfortunately doesn't appear in the online 
> documentation AFAICT (something that ought to be fixed).
> A common workaround is to use pattern searching tools like grep 
> if you know the phrase to look for:
> $ grep -Er c_long /path/to/imports
> , or in this case, since these things are usually done with 
> aliases:
> $ grep -Er 'alias\s+\w*\s+c_long' /path/to/imports

Thanks. I copied over stuff from the bindings and from the 
original header and I guess I missed the import.


More information about the Digitalmars-d-learn mailing list