open/4 leaves opened streams

From: Kish Shen <ks15_at_icparc.ic.ac.uk>
Date: Mon 19 Feb 2001 05:03:43 PM GMT
Message-Id: <E14Utix-0004M2-00@holborn.icparc.ic.ac.uk>
open/4 seems to call open/3. If the OptionList (4th argument) is
invalid, but the other arguments are OK, then open/3 succeeds, even though
an error is raised for open/4, and a stream is left behind:

[eclipse 18]:  open(newfile, write, a, atom).
type error in open(newfile, write, a, atom)
[eclipse 19]: streams.
  .....
  4     file    write   newfile ( a )
  .....

Should the OptionList be checked first before calling open/3 to avoid such
problems?
Received on Mon Feb 19 17:03:44 2001

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:08:04 PM GMT GMT