Newsgroups: comp.sys.transputer
From: andyr@teal.csn.org (Andy Rabagliati)
Reply-To: andyr@wizzy.com (Andy Rabagliati)
Subject: Re: Occam Question
Organization: W.Z.I.
Date: Sun, 30 Oct 1994 21:43:49 GMT
Message-ID: <CyI9p1.6FB@csn.org>

Manfred Sever <mse@wolverine.utias.utoronto.ca> wrote:

>
>i have the following OCCAM code fragment:
>
>  [10]INT samples :
>  []BYTE data RETYPES [samples FROM 0 FOR 10] :
>
>The only way to get the above code to compile and
>run is to disable usage checking with the `A'
>compiler option.

Check out #PRAGMA.

#PRAGMA PERMITALIASES samples
directly after declaration of samples will do what you want.

#PRAGMA SHARED buffer
after declaration of buffer will allow you omit usage checking for this
variable only. very handy.

Cheers,      Andy.

--
To see the world in a grain of sand,        Andy Rabagliati   andyr@wizzy.com
and heaven in a wild flower,                                W.Z.I. Consulting
Hold infinity in the palm of your hand,
and eternity in an hour.        -- William Blake


