2008年1月11日金曜日

Chapter 14 Files and File I/O (Continued)

このあたり、いまいちすっとはいってこない。
メモをとりながら読むことにする。

FIlenames


  • pathname objects は representation of filenames である。
  • pathname objects を pathnames と略す。
  • namestrings は システムローカルのシンタックスによるfilenamesのことである。
  • OPENによって返されるstreamsもrepresentaion of filenames である。
  • これら3つを総称して、pathname designators と呼ぶ。'
  • 組み込み関数でfilenamesを引数にとるところは全て、この3つのタイプのどのpathname designatorでも適用可能である。
  • namestrings と pathnames を相互変換する関数がいろいろ用意されている。


How Pathnames Represent Filenames


  • pathnames は a structured ojbectである。
  • 6つのcomponentsから成る。それは、host, device, directory, name, type, version である。
  • プラットフォームによっては、不必要なcomponentもある。
  • PATHNAME関数によって、a namestring を a pathname に変換できる。
  • もちろん、namestringsのみならず、pathname designatorsならなんでも入力として利用できる。
  • the language standardでは、namestrings から pathnamesへの変換は定義されていないが、ほとんどの処理系は実装している。
  • pathnamesのread syntaxは、#p"..."である。
  • pathname designatorsをnamestringsに変換するには、NAMESTRING関数を用いる。


Constructing New Pathnames
Two Representations of Directory Names
Interacting with the File System
Other Kinds of I/O

特になし。
しかし、CLが仕様化された当時の事情はわかるのですが、その後、どこかのタイミングで仕様をアップデートして、これらの混乱を整理することはできなかったのでしょうか。

0 件のコメント: