Code: Select all
DeclareModule Memory
Declare readData(hProcess, *address, *buffer, bufferSize)
EndDeclareModule
Error:
Despite the fact that modules do not inherit anything we define in the global scope, all of PureBasic's libraries are present. This allows some unexpected things such as calling library functions which were never explicitly defined:Line 3: Invalid name: same as a command (from library 'File').
Code: Select all
DeclareModule Memory
EndDeclareModule
Module Memory
EndModule
; Works fine
Memory::MessageRequester("","Test")
I proposed a suggestion which would also provide a solution for this some time ago, among other related ideas to improve modules:
viewtopic.php?f=3&t=71071