This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: something that would be nice


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 };
> }
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]