[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
External functions -Structure arguments
[Thread Prev] | [Thread Next]
- Subject: External functions -Structure arguments
- From: T Lee Davidson <t.lee.davidson@xxxxxxxxx>
- Date: Thu, 14 Mar 2024 00:11:49 -0400
- To: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
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] ----
Re: External functions -Structure arguments | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |
Re: External functions -Structure arguments | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |