carre@crcge1.UUCP (Francoise Carre) (08/03/88)
Could someone help me about the following problem in OCCAM? I want to place on each transputer of the network a process defined as: VAL INT n IS 4: PROC node([n]CHAN OF ANY C) ............. PAR i = 0 FOR n ...... with use of C[i] : BUT, the compiler refuses such a declaration, because formal parameter is an array of CHAN, as explained p78 of User Manual. Does it exist a way to produce the same effect, other than: PROC node(CHAN OF ANY C1,C2, ... Cn) ............. PAR ... use of C1 ... same use of C2 ... same use of Cn : this solution is first not elegant, and secondly it has to be changed manually when n is changed !!!!! Thanks for your Help, Francoise Carre, Laboratoires de Marcoussis, France.
pet@MBUNIX.MITRE.ORG (Paul E. Tallant) (08/11/89)
Glad to see some support for Occam. Two years ago I raised my voice for Occam and heard the roar of C'ers about pointers, structures, etc. I've used C for years -- but for parallel computing with the transputer, I do not know why one would not choose Occam. Paul Tallant