comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: 'first of strings returned from a function should be 1?
Date: 1997/07/27
Date: 1997-07-27T00:00:00+00:00	[thread overview]
Message-ID: <EDzr92.M8o@world.std.com> (raw)
In-Reply-To: 5rfcs1$i3j$1@goanna.cs.rmit.edu.au


In article <5rfcs1$i3j$1@goanna.cs.rmit.edu.au>,
Dale Stanbrough  <dale@goanna.cs.rmit.EDU.AU> wrote:
>Because i wanted to call the function, store the first character and not
>declare a local string. I am guessing that a local string would require
>extra copying (which i generally try to design out of programs)
>from heap to stack, although this may not be the case.

I don't get it.  It sounds like you're willing to painstakingly
calculate 387 characters, and then throw away all but one of them.  But
yet you begrudge the copying of them.

What's the real-life example where this makes sense?

- Bob




  reply	other threads:[~1997-07-27  0:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5rcaqi$le8$1@goanna.cs.rmit.edu.au>
1997-07-26  0:00 ` 'first of strings returned from a function should be 1? Matthew Heaney
1997-07-27  0:00 ` Dale Stanbrough
1997-07-27  0:00 ` David C. Hoos, Sr.
1997-07-27  0:00   ` Matthew Heaney
1997-07-28  0:00     ` Robert A Duff
1997-07-29  0:00       ` Anonymous
1997-07-30  0:00         ` Robert A Duff
1997-07-30  0:00       ` Dale Stanbrough
1997-07-27  0:00   ` Simon Wright
1997-07-27  0:00   ` Dale Stanbrough
1997-07-27  0:00     ` Robert A Duff [this message]
1997-07-27  0:00       ` Dale Stanbrough
1997-07-27  0:00         ` Matthew Heaney
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox