Re: Conflicts with words
- Posted by EUWX Sep 10, 2012
- 1081 views
sergelli said...
Hello
What is the simplest way to solve problems like this:
C:\1usre\sockets\connect.exw:25 <0135>:: Syntax error - expected to see an expression, not a procedure success=close(sock) ^
Thanks in advance
If you are going to need the use of this specific syntax frequently,
you could pre-define a new function "closed" in your own work.
function closed(sock) -- or public function return sockets:close(sock) end function
Then instead of using "close" use "closed" as your function
success=closed(sock)
This way you are not disturbing the std\socket.e library and not having to use the namespace prefix in your work except once in the definition of the function "closed"