REBOL3 tracker
  0.9.12 beta
Ticket #0001453 User: anonymous

Project:



rss
TypeBug Statustested Date31-Jan-2010 02:12
Versionalpha 96 CategoryPorts Submitted byptretter
PlatformAll Severityminor Priorityhigh

Summary OPEN? doesn't work for file ports
Description OPEN? works for tcp, clipboard and directory ports. For http ports it always returns false, which implies that the connection closes automatically (weird, but understandable). For file ports it throws an error. The file scheme should support OPEN?.
Example code
>> prt: open %somefile.txt
>> open? prt
** Script error: cannot use open? on port! value
** Where: open?
** Near: open? prt

Assigned ton/a Fixed inalpha 97 Last Update8-Feb-2010 03:35


Comments
(0001938)
BrianH
31-Jan-2010 05:17

Changed the platform from Windows to All, but that needs testing. If it's Windows-only we can change it back.
(0001940)
henrikmk
31-Jan-2010 08:32

I don't see this issue in R3-A96 for OSX.
(0001941)
abolka
31-Jan-2010 13:50

The bug also appears on R3 A96 on linux-fedora:

>> system/version
== 2.100.96.4.3

>> write %FOO #{}
>> f: open %FOO
>> open? f
** Script error: cannot use open? on port! value
** Where: open?
** Near: open? f

Date User Field Action Change
8-Feb-2010 03:35 BrianH Status Modified built => tested
3-Feb-2010 22:36 carl Fixedin Modified => alpha 97
3-Feb-2010 22:36 carl Status Modified reviewed => built
31-Jan-2010 13:50 abolka Comment : 0001941 Added -
31-Jan-2010 08:32 henrikmk Comment : 0001940 Added -
31-Jan-2010 05:17 BrianH Comment : 0001938 Added -
31-Jan-2010 05:15 BrianH Summary Modified Need help updated on open? => OPEN? doesn't work for file ports
31-Jan-2010 05:15 BrianH Description Modified -
31-Jan-2010 05:15 BrianH Code Modified -
31-Jan-2010 05:15 BrianH Category Modified Documentation => Ports
31-Jan-2010 05:15 BrianH Status Modified submitted => reviewed
31-Jan-2010 05:15 BrianH Priority Modified normal => high
31-Jan-2010 05:15 BrianH Platform Modified Windows => All
31-Jan-2010 02:12 ptretter Ticket Added -