home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / parallel / 2754 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.7 KB  |  51 lines

  1. Newsgroups: comp.parallel
  2. Path: sparky!uunet!europa.asd.contel.com!emory!swrinde!sdd.hp.com!ncr-sd!ncrcae!hubcap!fpst
  3. From: Thomas Zurek <s_zurek@ira.uka.de>
  4. Subject: Re: Connection Machine C* programming problem - linked lists
  5. Message-ID: <1992Dec16.134947.21095@hubcap.clemson.edu>
  6. Keywords: Connection Machine, C* C star, CM
  7. Sender: newsadm@ira.uka.de
  8. Nntp-Posting-Host: irau36.ira.uka.de
  9. Organization: University of Karlsruhe, FRG
  10. References: <1992Dec15.134619.7889@hubcap.clemson.edu>
  11. Date:     Wed, 16 Dec 1992 14:19:57 +0100
  12. Approved: parallel@hubcap.clemson.edu
  13. Lines: 36
  14.  
  15. In article <1992Dec15.134619.7889@hubcap.clemson.edu>, hackeron@athena.mit.edu (Harris L Gilliam) writes:
  16. |> 
  17. |> Hi,
  18. |> 
  19. |>     Has anyone found an efficient solution to the restriction that C*
  20. |> imposes, namely no parallel variables or pointers as structure members ?  One of
  21. |> the most common C data structures is the linked list, and a very usefull one, but
  22. |> this restriction elliminates the common implementation of linked lists.  Has
  23. |> anyone found a way around this ?
  24.  
  25.  
  26. Earlier this year I was implementing an experimental relational
  27. database system using the following declarations:
  28.  
  29.     typedef int:physical columntype;
  30.  
  31.     struct columnlist { columntype         *column;
  32.                         struct columnlist  *next;
  33.                       };
  34.  
  35. So the solution is to use a pointer to a parallel variable (as
  36. a member of the structure) rather than the parallel variable
  37. itself.
  38. I hope this will help you.
  39.  
  40. Cheers
  41.  
  42. Thomas
  43.  
  44. ---------------------------------------------------------------
  45. Thomas Zurek
  46. Fakultaet fuer Informatik           Dep. of Computer Science
  47. Universitaet Karlsruhe              University of Karlsruhe
  48. Deutschland                         Germany
  49.  
  50.  
  51.