home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.parallel
- Path: sparky!uunet!spool.mu.edu!agate!usenet.ins.cwru.edu!gatech!hubcap!fpst
- From: mlevin@husc8.harvard.edu (Michael Levin)
- Subject: a question on C* (Connection Machine) syntax
- Message-ID: <1992Nov9.221103.17282@husc3.harvard.edu>
- Sender: fpst@hubcap.clemson.edu (Steve Stevenson)
- Nntp-Posting-Host: husc8.harvard.edu
- Organization: Harvard University Science Center
- Distribution: usa
- Date: 9 Nov 92 22:11:03 EST
- Approved: parallel@hubcap.clemson.edu
- Lines: 27
-
-
- The following short C* code does not compile. The error given by
- cs is:
-
- "x.cs", line 12: bad operand combination for =
-
- the only difference between lines 12 and 10 is that the
- pre-declaration of b() has a float as an argument, and the one for
- a() does not. If I change b to take int:plane, it compiles. Why is
- this so? The regular C compiler has no problem with it (without the
- :plane). If anyone knows what the problem is, please let me know at
- mlevin@presto.cs.tufts.edu.
-
- shape [128][128]plane;
-
- int:plane a(int:plane p);
- int:plane b(float:plane p);
-
- int:plane (*which_funct(s))()
- char *s;
- {
- if (!stricmp(s,"A"))
- return(a);
- if (!stricmp(s,"B"))
- return(b);
- }
-
-