diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-08-13 23:10:25 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-08-13 23:10:25 -0700 |
commit | 734eef7c0ee9d4626aec7a44b5dbf1d1d92f010f (patch) | |
tree | 716400ead036613cb2bb51b13bd7350a016cd812 /011load.cc | |
parent | dff1abb2e10ca2dd064a505dfb3d67635f680a9a (diff) | |
download | mu-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 '011load.cc')
0 files changed, 0 insertions, 0 deletions