Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!CBEBDA3T.BITNET!U06A From: U06A@CBEBDA3T.BITNET (Stefan Friedli) Newsgroups: comp.sys.transputer Subject: How to send a variant protocol over a link? Message-ID: <8803171831.AA04508@tcgould.TN.CORNELL.EDU> Date: 17 Mar 88 13:08:00 GMT Sender: uucp@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 19 I hope someone can help with the following problem: For a program I currently develop, it would be a nice and elegant way to have a variant protocol on a physical link. As this is not supported by the configuring language (only CHAN OF ANY is allowed for links), I looked for (and found) a solution: declare the links as CHAN OF ANY, pass it as an actual parameter to some procedure that has as the corresponding formal parameter a channel of a variant protocol. Problem: This works fine (and does what it's supposed to do!!!)... on the compiler in d700C. The new compiler in d700D rejects this way of parameter passing and according to a note of INMOS (Writing occam programs to minimise future changes, June 24, 1987, paragraph 2: Protocols), this restriction will be kept in future releases. Anyone out there to help? Thanks. Stef.