This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: something that would be nice
- From: "Matt Wells" <mwells at gigablast dot com>
- To: "Mike Stump" <mrs at apple dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Tue, 11 Nov 2003 16:25:55 -0700
- Subject: Re: something that would be nice
- Organization: Gigablast
- References: <7FB6D1A2-149B-11D8-8312-003065A77310@apple.com>
- Reply-to: "Matt Wells" <mwells at gigablast dot com>
oh, follow up question.
if i had a bunch of these functions in one file wouldn't i have
to do it like:
struct foo1 { int i; int j; } bar () ;
struct foo2 { int i; int j; } bar () ;
struct foo3 { int i; int j; } bar () ;
...
?
if so, that could get confusing.
matt
----- Original Message -----
From: "Mike Stump" <mrs@apple.com>
To: "Matt Wells" <mwells@gigablast.com>
Cc: <gcc@gcc.gnu.org>
Sent: Tuesday, November 11, 2003 4:05 PM
Subject: Re: something that would be nice
> On Tuesday, November 11, 2003, at 02:49 PM, Matt Wells wrote:
> > My name is Matt Wells and I'm the sole creator of the internet's
> > soon-to-be
> > largest search engine, http://www.gigablast.com/ .
>
> :-) A bold claim. Presently you seem to be about 300x smaller than
> google. Impressive that you're that close. But bear in mind, you have
> to be about 10x better than them to displace them.
>
> > So my question is... would it be easy to make functions return multiple
> > values?
>
> :-) Most of us have seen this type of request before. We'd just
> recommend that you use struct...
>
> struct foo { int i; int j; } bar () {
> return (struct foo) { 1, 2 };
> }
>