httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Kosut <ako...@organic.com>
Subject Re: apache handlers (1)
Date Wed, 06 Aug 1997 18:58:51 GMT
On Wed, 6 Aug 1997, Ben Laurie wrote:

> Alexei Kosut wrote:
> > 
> > On Wed, 6 Aug 1997, Ben Laurie wrote:
> > 
> > > Aha! So its you that keeps leaving the NULLs off the ends of lists, is
> > > it? :-)
> > 
> > Probably. It seems like a failing in C, though, that a function can't
> > somehow  find out how many arguments it's been passed. And if you mention
> > C++, I'll have to scream or something :)
> 
> Actually, I'll only mention it to say that it has the same failing :-)

You could fake it, though:

void function(arg1 = NULL, arg2 = NULL, arg3 = NULL, arg4 = NULL,
              ar...arg1000000 = NULL);

That would provide the same functionality, albiet in a really stupid
way.

-- Alexei Kosut <akosut@organic.com>


Mime
View raw message