[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

External functions -Structure arguments


Ref. https://gambaswiki.org/wiki/doc/extern

"If the function returns a struct ABC *, then you mimic the structure ABC declaration somewhere, and you declare the return value as Struct ABC."

When I do that as, for example:
"Extern get_block_info(id As Integer) As Struct BlockInfo"
I get a "Unexpected Struct" error on compile.

If I leave out "Struct", the compiler does not complain.

Is this documentation in need of correction?


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: External functions -Structure argumentsT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: External functions -Structure argumentsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>