home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.parallel
- Path: sparky!uunet!europa.asd.contel.com!emory!swrinde!sdd.hp.com!ncr-sd!ncrcae!hubcap!fpst
- From: Thomas Zurek <s_zurek@ira.uka.de>
- Subject: Re: Connection Machine C* programming problem - linked lists
- Message-ID: <1992Dec16.134947.21095@hubcap.clemson.edu>
- Keywords: Connection Machine, C* C star, CM
- Sender: newsadm@ira.uka.de
- Nntp-Posting-Host: irau36.ira.uka.de
- Organization: University of Karlsruhe, FRG
- References: <1992Dec15.134619.7889@hubcap.clemson.edu>
- Date: Wed, 16 Dec 1992 14:19:57 +0100
- Approved: parallel@hubcap.clemson.edu
- Lines: 36
-
- In article <1992Dec15.134619.7889@hubcap.clemson.edu>, hackeron@athena.mit.edu (Harris L Gilliam) writes:
- |>
- |> Hi,
- |>
- |> Has anyone found an efficient solution to the restriction that C*
- |> imposes, namely no parallel variables or pointers as structure members ? One of
- |> the most common C data structures is the linked list, and a very usefull one, but
- |> this restriction elliminates the common implementation of linked lists. Has
- |> anyone found a way around this ?
-
-
- Earlier this year I was implementing an experimental relational
- database system using the following declarations:
-
- typedef int:physical columntype;
-
- struct columnlist { columntype *column;
- struct columnlist *next;
- };
-
- So the solution is to use a pointer to a parallel variable (as
- a member of the structure) rather than the parallel variable
- itself.
- I hope this will help you.
-
- Cheers
-
- Thomas
-
- ---------------------------------------------------------------
- Thomas Zurek
- Fakultaet fuer Informatik Dep. of Computer Science
- Universitaet Karlsruhe University of Karlsruhe
- Deutschland Germany
-
-
-