David Bremner wrote:
I hope this is not off-topic.  In the Haridi and Van Roy slides
(LINF1251) there is an example in Chapter 2 that uses

   FH={OpenFile "name"}

   ...

   {CloseFile FH}


Am I right in thinking that these functions are purely hypothetical? I
guess I see how to write them based on Open.file and friends, but at
this point in CTM, we don't know about classes.

David

Dear David,

OpenFile and CloseFile are hypothetical, but you can use the File module
which is defined at:
  http://www.info.ucl.ac.be/~pvr/ds/File.oz
These provide a list-of-character-based interface to files.

BTW, there are more supplements and example programs at:
  http://www.info.ucl.ac.be/~pvr/ds/mitbook.html

Best regards,

Peter

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to