daokoder / dao

Dao Programming Language
http://daoscript.org
Other
198 stars 19 forks source link

A tuple bug (presumably) #519

Open Night-walker opened 8 years ago

Night-walker commented 8 years ago
(dao) load net
= none
(dao) sock = net.listen(':23498')
= TcpListener[0x1ca9b40]
(dao) s = sock.accept() # here a remote peer connects
= ( , [[Error::Param]] --- Invalid parameter(s):

In code snippet:
      4 :  SETVG       :     3 ,     3 ,     0 ;     1;   s = sock. accept()
>>    5 :  RETURN      :     3 ,     1 ,     0 ;     1;   )
Raised by:  __main__(), at instruction 5 in line 1 in file "interactive codes";
 )
[[Exception::Error]] --- General error:

In code snippet:
      4 :  SETVG       :     3 ,     3 ,     0 ;     1;   s = sock. accept()
>>    5 :  RETURN      :     3 ,     1 ,     0 ;     1;   )
Raised by:  __main__(), at instruction 5 in line 1 in file "interactive codes";