But LENGTH? on port will always return 0 if port actor tries to return none:
register-scheme make system/standard/scheme [name: 'len actor: context [
open: func[port] [port]
length?: func[port] [none]
]]
length? port:openlen://test;== 0
So it's an issue with the docstring, as per red/red@a063f13 the signature has been changed from return: [red-value!] to return: [integer!].
Red 0.6.4 for Windows built 15-Apr-2022/10:42:52+02:00 commit #502097e
But LENGTH? on port will always return
0if port actor tries to returnnone:So it's an issue with the docstring, as per red/red@a063f13 the signature has been changed from
return: [red-value!]toreturn: [integer!].Red 0.6.4 for Windows built 15-Apr-2022/10:42:52+02:00 commit #502097e