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

Re: External functions -Structure arguments


On 3/16/24 13:25, Benoît Minisini wrote:
Le 16/03/2024 à 18:21, T Lee Davidson a écrit :
On 3/14/24 00:11, T Lee Davidson wrote:
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?

Anyone?
(Did I not phrase the question clearly?)



I didn't have the time to look at it yet, because I am watching videos on youtube. :-)


LOL. Okay. Maybe we can expect you back after a month or so.

--
Lee

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


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