q about bindings to C (noob)

RomanZ via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 3 01:27:02 PDT 2016


version(RefOut)
	extern(C) void fun(out int input, ref in output);
else
	extern(C) void fun( /*[out]*/ int* input, const(float)* output);
	
version = RefOut;
void main() {
	int input;
	float output;
	fun( input, output ); // work fine; is it correct binding? or 
where the trouble?
}



More information about the Digitalmars-d-learn mailing list