In ORCA/C I get a compiler error when I try the following (which appears in Apple's and other's books)
int toolTable[] = {
// <etc>
};
LoadTools(toolTable);
But this works
LoadTools((char*)toolTable);
I didn't think an explicit cast would be needed -- it should make that cast for me right? It seems that the APW C compiler would allow that. At worst, a compiler warning instead of an error? (for example gcc flags it as a warning)
In ORCA/C I get a compiler error when I try the following (which appears in Apple's and other's books)[...]
But this works
LoadTools((char*)toolTable);
I am using ORCA/C 2.2.0 B4, the error says "Type conflict."
On Saturday, October 31, 2020 at 10:49:04 AM UTC-7, Paul MacMillan wrote:
I am using ORCA/C 2.2.0 B4, the error says "Type conflict."
And FWIW the ORCA 2.1 from Opus yields the same result (Type Conflict error vs. the expected Warning).
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 219:23:12 |
Calls: | 6,621 |
Calls today: | 3 |
Files: | 12,171 |
Messages: | 5,317,854 |