Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!eos!ames!haven!adm!xadmx!MATHRICH@umcvmb.missouri.edu From: MATHRICH@umcvmb.missouri.edu (Rich Winkel UMC Math Department) Newsgroups: comp.lang.pascal Subject: function return value Message-ID: <18581@adm.BRL.MIL> Date: 8 Mar 89 12:35:13 GMT Sender: news@adm.BRL.MIL Lines: 19 I'm probably just being nitpicky here, but I'm trying to optimize some turbopas routines. Here's what I'd like to do: function what(var where:string):string; begin what:=where; what:=what+what; (* string concatenation *) end; Obviously, in it's current form, any compiler will probably attempt to deal with the concatenation statement as a recursive function call, but that's not what I'm after. I'd actually like to reference the function return buffer (on the stack) as a variable. I tried something like: var alias:string absolute what; in an attempt to reference the buffer, but TP 5 acts like it wants the 'what' to be an actual function call, which doesn't make much sense, since it's in a non executable statement. Anyway, does anyone have any ideas? Thanks, Rich Winkel