🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.transputer
1 messages
1 total messages Started by Francoise Carre Wed, 03 Aug 1988 10:26
OCCAM
#2157
Author: Francoise Carre
Date: Wed, 03 Aug 1988 10:26
27 lines
1006 bytes
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads