Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!apple!bloom-beacon!hstbme.mit.edu!sorensen From: sorensen@hstbme.mit.edu (Gregory Sorensen) Newsgroups: comp.lang.c++ Subject: Can I hide data from my compiler? Message-ID: <10133@bloom-beacon.MIT.EDU> Date: 27 Mar 89 16:31:29 GMT Sender: daemon@bloom-beacon.MIT.EDU Reply-To: sorensen@hstbme.mit.edu.UUCP (Gregory Sorensen) Organization: Massachusetts Institute of Technology Lines: 15 Howdy. This is a major c++ neophyte here. I have a question, and am looking to the great collective intellect of the net for a solution (pointless, you say?? :-) My problem: I'd like to hide my data type from my routines. Specifically, I'd like routines which I can pass a data object made up of, say, floats or shorts, and use the same identical code to process either, although I won't know _until run time_ whether the data is made up of floats or shorts. Is there a way to do this other than defining functions for each data object? Thanks, Greg Sorensen sorensen@hstbme.mit.edu