Re: Conflicts with words

new topic     » goto parent     » topic index » view thread      » older message » newer message
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"

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu