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


On Tuesday, November 11, 2003, at 03:25 PM, Matt Wells wrote:
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.

[ I found out in another place gigablast is in C++ so I sent a C++ solution off list ]


pair<int,int> bar() { ... }

pair<int,int> bar2() { ... }

pair<int,int> bar3() { ... }

I don't see anything confusing... :-)


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