Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!markh From: markh@csd4.milw.wisc.edu (Mark William Hopkins) Newsgroups: comp.lang.pascal Subject: Re: function returning a record? Message-ID: <1442@csd4.milw.wisc.edu> Date: 5 Mar 89 21:59:02 GMT References: <2012@pur-phy> Sender: news@csd4.milw.wisc.edu Reply-To: markh@csd4.milw.wisc.edu (Mark William Hopkins) Organization: University of Wisconsin-Milwaukee Lines: 12 In article <2012@pur-phy> murphy@newton.physics.purdue.edu.UUCP (William J. Murphy) writes: > >I found out that Turbo Pascal 5.0 does not support returning a record as a >value. Does this imply that a function can only return a single value? >Is there any way to get a function to return a record? I know of three way to do it: (1) Have the function return a pointer to the record, (2) Use a procedure with var parameters, (3) Rewrite the Pascal compiler (and get ANSI to modify the standard). Pascal is otherwise limited in this respect.