Can't pass [] to extern function object method
frame
frame86 at live.com
Mon Nov 16 22:22:42 UTC 2020
On Monday, 16 November 2020 at 21:58:44 UTC, Jack wrote:
> What is the function prototype like and how are you declaring
> that struct?
The struct is very simple, it contains:
struct S {
SysTime a;
ulong b;
double c;
ubyte[] d;
string e;
}
And I tried:
bool foo(S[] params); // passing a S[]
bool foo(S[]* params); // passing a &S[]
bool foo(S* params); // passing a S.ptr
More information about the Digitalmars-d-learn
mailing list