#728 .stream~description & ~open return different codes

v4.0beta
closed
Rick McGuire
5
2012-08-14
2009-06-10
Mark Harsen
No

I have found possibly unintentional differences and/or documentation errors or oversights involving the .stream~open and ~description methods.

  1. F= .stream~new("c:\nonexistant.file”); F~open used to return "ERROR:2" (and is documented this way [beta 4702 p. 413]), but it now returns "ERROR:9" instead.

  2. Similarly, ~description used to return "ERROR:2 No such file or directory", but now returns "ERROR:9 Bad file descriptor"

  3. Documentation for ~description [p. 189] states that values returned are documented under ~state but ~state [p. 205] only documents basic information such as ERROR and NOTREADY but says nothing about "ERROR:9 Bad file descriptor" type messages.

Thank you, -Mark

Discussion

  • Mark Harsen
    Mark Harsen
    2009-06-10

    Demonstrates difference in ~open and ~description under 3.2 verses 4.0 beta 4702

     
    Attachments
  • Rick McGuire
    Rick McGuire
    2009-06-10

    Committed revision 4789.

    The error code issue has been correct. The note in the DESCRIPTION method was just giving a pointer for an explanation of the ERROR and NOTREADY states, but this note was very confusing in its placement and didn't really add much to the docs, so I've removed it.

     
  • Mark Harsen
    Mark Harsen
    2009-06-16

    Everything looks good. Thank you! -Mark

     


Anonymous


Cancel   Add attachments