You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting an error trying to call an intrinsic proc in the global scope that's is assigned a new name in the imported lib.
Expected it to work similar to a normal function.
import "core:sys/windows"
CLASSNAME := windows.L("ApplicationWindowClass") // error: 'L' is not exported by 'windows'
add :: proc(a, b: int) -> int { return a + b }
c := add(3, 4) // works
// Note: this proc could also be in a separate lib and the call prefixed with that lib's name and it still works
Related is the following error when trying to access the same exported name without the library name with using the lib:
dummy :: proc() {
CLASSNAME = windows.L("ApplicationWindowClass") // ok
using windows
CLASSNAME = L("ApplicationWindowClass") // error: Undeclared name: L
}
odin report
Odin: dev-2022-08:1f622579
OS: Windows 10 Professional (version: 21H2), build 19044.1889
CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
RAM: 16332 MiB
The text was updated successfully, but these errors were encountered:
I am getting an error trying to call an intrinsic proc in the global scope that's is assigned a new name in the imported lib.
Expected it to work similar to a normal function.
Related is the following error when trying to access the same exported name without the library name with
using
the lib:odin report
Odin: dev-2022-08:1f622579
OS: Windows 10 Professional (version: 21H2), build 19044.1889
CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
RAM: 16332 MiB
The text was updated successfully, but these errors were encountered: