Newsgroups: comp.sys.transputer
From: mwood@tartarus.uwa.edu.au (Matthew Wood)
Subject: Occam problem
Organization: The University of Western Australia
Date: 29 Jun 1994 08:39:04 GMT
Message-ID: <2urbv8$2f9@styx.uwa.edu.au>


I am still in the process of figuring out the mysterious ways of OCCAM2

In particular I have a problem with passing an array of channels from a
PLACED PAR statement.

eg.

.
.
.

#USE "static.c5h"  -- procedure "main" is in here...

[2]CHAN OF INT channel.block

PLACED PAR

  PROCESSOR 0 T425
    PLACE from.host AT link0.in
    PLACE to.host AT link0.out

    PLACE channel.block[0] AT link1.out
    PLACE channel.block[1] AT link2.out

    main(from.host, to.host, channel.block)

  PROCESSOR 1 T425
.
.
.
 
 
 
This generates an error. ("Only elements of configuration channels may
be used, not segment")
 
The compiler will not let me pass the whole array to a
process, only the individual elements. However if I just wish to pass an
array of channels from one procedure to another, not inside a PLACED
PAR there isn't a problem.
 
Why is this so? Is there anyway around this?
 
Any help on this would be appreciated...
 
---------------------------------------------------------------
 
Matthew Wood
 
e-mail : m.wood@ieee.org
 
---------------------------------------------------------------
 



