kent logo

CO538 Anonymous Questions and Answers Keyword Index

This page provides a keyword index to questions and answers. Clicking on a keyword will take you to a page containing all questions and answers for that keyword, grouped by year.

To submit a question, use the anonymous questions page. You may find the keyword index and/or top-level index useful for locating past questions and answers.

Keyword reference for raptor


Question 19 (2000):

Can you remind me where the occam files are stored which we should copy to update ours?

Answer 19:

This information was posted to the newsgroups on the 3rd. November and should still be viewable. A copy of that posting was also saved on raptor:


For a more permanent record, the important parts - plus some new information - are given here.

The starter files (q*.occ) in the occam/exercises directory in the course area on raptor have been updated. Please could everyone take a new copy. First, change to your version of this directory - e.g.:

  cd occam/exercises

Then, copy over the updated files:

  cp /usr/local/work/co516/exercises/q*.occ .

You will now have new versions of q1.occ through q7.occ. The difference between these new versions and the old ones is that the nested PROC declarations have been pulled to the outermost level of each file. The nested PROCs were perfectly legal and correct ... but I now think that flattening out these declarations leaves things a little neater and, therefore, easier to follow. There was no need for them to have been declared nested within the top-level PROC, so let's not do it.

The new version of q2.occ has one other change. It replaces the peculiar PROC layout.max.chans (which has more functionality built into it than you need for this question) with the simpler PROC tabulate.int.

[layout.max.chans tabluates an array of max.chans integer input streams to a text output stream that displays max.chans columns of numbers - with (the ASCII text form of) each input stream integer displayed on each row. The tabulate.int process does the same for just one integer input stream, producing a single column of numbers.]

Also: the example files in the occam/examples directory in the course area on raptor have been given similar treatment. Please take new copies. First, change to your version of this directory - e.g.:

  cd occam/examples

Then, copy over the updated files:

  cp /usr/local/work/co516/examples/*.occ .

You will now have new versions of these files - however, only the following are different:


Thise differences are just the movement of inner PROC declarations to the top level - apart from casting.occ, where only the formatting of its comments have changed.

Keywords: raptor , course-files

Question 10 (2000):

How do I see the /usr/local/work/co516 files from Windows? I want to print some of them and I want to do that from Windows ...

Answer 10:

I assume you have mapped your home (raptor) directory so you can see it from Windows. Set up a unix soft link as follows. On raptor, change to your home directory. Then, type the command:

  ln -s /usr/local/work/co516 co516

This will create a file (in your home directory) called co516. This file acts like a directory. If you cd to it, you will find that you are taken to the course directory.

What's more, co516 looks like a sub-folder when you view your (raptor) home directory from Windows. Double-click on it to browse through the course sub-folders.

Keywords: raptor

Valid CSS!

Valid XHTML 1.0!

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
Last modified Mon May 20 13:50:32 2013
This document is maintained by Fred Barnes, to whom any comments and corrections should be addressed.