Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!samsung!cs.utexas.edu!helios!eemips.tamu.edu From: greg@eemips.tamu.edu (Greg Economides) Newsgroups: comp.lang.eiffel Subject: passing an object to a C routine Message-ID: <8255@helios.TAMU.EDU> Date: 14 Sep 90 16:52:53 GMT Sender: usenet@helios.TAMU.EDU Distribution: usa Organization: Texas A&M University, College Station Lines: 21 I have a numerical simulation running in C which will be a part of an Eiffel project. I need to pass quite a bit of data between the simulation and the Eiffel part (an interpreter of the simulator's output). C likes to have large amounts of info passed by a pointer to a structure or something which involves less data moving around than passing all of the actual values. I could try passing an object to the C routine, but I would then need to know how an Eiffel object is represented in C and in what form this object is passed. Can anyone share that information with me? Alternately, if I could pass a pointer to the C routine, that would be alright. In this case, how does one go about implementing a pointer in Eiffel? It seems to me that this option would come very close to violating one or more of Meyer's OOP policies (data hiding). Peace, -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Greg Economides Internet: greg@zadok.tamu.edu Texas A&M University greg@eemips.tamu.edu