home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / transput / 1227 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.6 KB  |  33 lines

  1. Newsgroups: comp.sys.transputer
  2. Path: sparky!uunet!inmos!titan.inmos.co.uk!news
  3. From: conor@lion.inmos.co.uk (Conor O'Neill)
  4. Subject: Re: Dynamic Memory Allocation (was Re: Why Occam3 probably won't be recursive)
  5. Message-ID: <1992Nov20.140141.4279@titan.inmos.co.uk>
  6. Keywords: Occam3 recursive, no
  7. Sender: news@titan.inmos.co.uk
  8. Reply-To: conor@inmos.co.uk (Conor O'Neill)
  9. Organization: INMOS Limited, Bristol, UK.
  10. References: <1992Nov11.033835.21118@netcom.com> <2225@eagle.ukc.ac.uk> <dbc.722086651@bill> <BxyB6I.LLF@research.canon.oz.au>
  11. Date: Fri, 20 Nov 1992 14:01:41 GMT
  12. Lines: 19
  13.  
  14. In article <BxyB6I.LLF@research.canon.oz.au> andy@research.canon.oz.au (Andy Newman) writes:
  15. >    Yes we used CHAN OF ANY - it allowed our configuration langauage and
  16. >communications system work! The two element vector holds the "to"
  17. >channel and the "from" channel used to perform the RPC with the memory
  18. >allocator process (this use exposed a limitation in the compiler, it
  19. >assumed all channels in a vector were used in the same "direction")
  20.  
  21. This isn't a limitation of the _compiler_, it is a limitation of the
  22. language: page 76 of the occam reference manual says that a channel
  23. parameter may not be used for both input and output in a procedure.
  24. This is so that an implementation can just remember that it's
  25. either an `input channel array' or an `output channel array'
  26. for usage checking, without having to keep a bit vector for each element.
  27. It also means that arrays of unknown size are treated similarly.
  28.  
  29. ---
  30. Conor O'Neill, Software Group, INMOS Ltd., UK.
  31. UK: conor@inmos.co.uk        US: conor@inmos.com
  32. "It's state-of-the-art" "But it doesn't work!" "That is the state-of-the-art".
  33.