about summary refs log tree commit diff stats
path: root/082scenario_screen.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-08-13 23:10:25 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-08-13 23:10:25 -0700
commit734eef7c0ee9d4626aec7a44b5dbf1d1d92f010f (patch)
tree716400ead036613cb2bb51b13bd7350a016cd812 /082scenario_screen.cc
parentdff1abb2e10ca2dd064a505dfb3d67635f680a9a (diff)
downloadmu-734eef7c0ee9d4626aec7a44b5dbf1d1d92f010f.tar.gz
3183 - cleanup
- New plan
Primitives:
  $open-file-for-reading
  $open-file-for-writing
  $read-from-file
  $write-to-file
  $close-file

The '$' prefix indicates that none of these are intended to be used
directly since they rely on type-system-busting numbers. Also that they
are just temporary hacks depending on primitives provided by the host
system. A putative 'Mu machine' would have very different primitives.

Testable interfaces:
- start-reading: starts a routine to read from a file and returns the
  source where the contents will become available.
- start-writing: starts a routine to write to a file and returns the
  sink where the contents can be provided.

Both operate on the real file-system if the first 'filesystem'
ingredient is 0.

Once you start them up you can read/write/close the channel as usual.
Diffstat (limited to '082scenario_screen.cc')
0 files changed, 0 insertions, 0 deletions
/a> 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183