10.07.2015 Views

Algol 68 - ACM Digital Library

Algol 68 - ACM Digital Library

Algol 68 - ACM Digital Library

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

152van Wijngaarden, et al.ALGOL <strong>68</strong> Revised Report 153m)n)o)P)proc .~ set bin mood = (rot file f) void :if" bin possible (f) v . set possible (f) ^ char mood offthan undefinedelse ref bool (char mood off):= false; ref bool (bin mood off/:= truefi;proc close = (ref file file) void :if opened of filethendown bfileprotect;ref bool (opened of file) := false;ref book book = book of file;putting of book := false; users of book -: = 1;(text of file I (flextext): ckainbfile :=PRIM bflle := (book, chainbfile));up gremlinsfl;proc lock = (ref file file) void :if opened of filethendown bfileprotect;ref bool (opened of file) := false;ref book book = book of file;putting of book := false; users of book -:= 1;(text of file I (flexlext): lockedbfile :=PRIM bflle : = (book, lockedbfile));up gremlinsfi;proc scratch = (ref file file) void :if opened of filethendown bfileprotect;ref bool (opened of file) := false;putting of book of file : = false;users of book of file -: = 1;up gremlinsfl;10.3.1.5. Position enquiries{aa) The "current position" of a book opened on a given file is thevalue referred to by the cpos field of that file. It is advanced by eachtransput operation in accordance with the number of characters written orread.If c is the current character number and Ib is the length of thecurrent line, then at all times 1 c of book bounds (f)) ;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!