Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Re: parsing variable arg lists via va_list pointers (any gurus here?)

Reply
Thread Tools

Re: parsing variable arg lists via va_list pointers (any gurus here?)

 
 
Chris Dollin
Guest
Posts: n/a
 
      06-03-2008
Jesse Ziser wrote:

> I'm trying to write a function that takes a very complex variable
> argument list.


Why?

--
"It does not need to take events in their correct order." /Hexwood/

Hewlett-Packard Limited registered no:
registered office: Cain Road, Bracknell, Berks RG12 1HN 690597 England

 
Reply With Quote
 
 
 
 
Chris Dollin
Guest
Posts: n/a
 
      06-03-2008
Richard Heathfield wrote:

> Chris Dollin said:
>
>> Jesse Ziser wrote:
>>
>>> I'm trying to write a function that takes a very complex variable
>>> argument list.

>>
>> Why?

>
> Because it isn't there.


Neither is the natural number whose square is 17.

--
"It would have to be enough." /Brokedown Palace/

Hewlett-Packard Limited registered office: Cain Road, Bracknell,
registered no: 690597 England Berks RG12 1HN

 
Reply With Quote
 
 
 
 
Chris Dollin
Guest
Posts: n/a
 
      06-03-2008
Richard Heathfield wrote:

> Chris Dollin said:
>
>> Richard Heathfield wrote:
>>
>>> Chris Dollin said:
>>>
>>>> Jesse Ziser wrote:
>>>>
>>>>> I'm trying to write a function that takes a very complex variable
>>>>> argument list.
>>>>
>>>> Why?
>>>
>>> Because it isn't there.

>>
>> Neither is the natural number whose square is 17.

>
> Wrong. 5x5 is 17 (in base eighteen).


17(base 1 isn't 17.

--
"It would have to be enough." /Brokedown Palace/

Hewlett-Packard Limited registered no:
registered office: Cain Road, Bracknell, Berks RG12 1HN 690597 England

 
Reply With Quote
 
micans@gmail.com
Guest
Posts: n/a
 
      06-04-2008
On Jun 4, 2:59 am, Jesse Ziser <d...@spam.die> wrote:
> Richard Heathfield wrote:
> > Chris Dollin said:

<snip>
> >>>>>>> I'm trying to write a function that takes a very complex variable
> >>>>>>> argument list.
> >>>>>> Why?
> >>>>> Because it isn't there.

<snip>
> P.S.:
> I love the fact that the person who started this terribly useful
> subthread was apparently trying to chastise me for doing something he
> saw as pointless.


The second quote above was a very concise/brief/terse 'why?'
in response to "I'm trying to write a function that takes a very
complex variable argument list".
I would not read too much into this, certainly not a judgmental
attitude. How about interpreting it as "What is it that you are
achieving to do?" There is always a chance there are other approaches.
Even if you know no other approach will suffice, other people might
still enjoy pondering a more general problem.

Stijn
 
Reply With Quote
 
Chris Dollin
Guest
Posts: n/a
 
      06-04-2008
Jesse Ziser wrote:

> Richard Heathfield wrote:
>> Chris Dollin said:
>>
>>> Richard Heathfield wrote:
>>>
>>>> Chris Dollin said:
>>>>
>>>>> Richard Heathfield wrote:
>>>>>
>>>>>> Chris Dollin said:
>>>>>>
>>>>>>> Jesse Ziser wrote:
>>>>>>>
>>>>>>>> I'm trying to write a function that takes a very complex variable
>>>>>>>> argument list.
>>>>>>> Why?
>>>>>> Because it isn't there.
>>>>> Neither is the natural number whose square is 17.
>>>> Wrong. 5x5 is 17 (in base eighteen).
>>> 17(base 1 isn't 17.

>>
>> Yes, but I didn't /say/ base 18, did I? I said base eighteen.
>>
>> Shall we stop here, before we both get lynched?

>
> Yes.
>
> P.S.:
> I love the fact that the person who started this terribly useful
> subthread was apparently trying to chastise me for doing something he
> saw as pointless.


If you mean me, I asked a perfectly reasonable question; /why?/ are
you trying to write a function that takes a very complex variable
argument list?

I don't see it as pointless; I do see it as needlessly tricky,
but you may be able to show the need. And showing the need may
provoke alternative approaches.

--
"Giving my opinion / to whoever's there." /Wonderland/

Hewlett-Packard Limited registered office: Cain Road, Bracknell,
registered no: 690597 England Berks RG12 1HN

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: parsing variable arg lists via va_list pointers (any gurus here?) Tomás Ó hÉilidhe C Programming 2 06-04-2008 12:33 PM
Re: parsing variable arg lists via va_list pointers (any gurus here?) Amandil C Programming 1 06-04-2008 02:55 AM
How to pass a multiline arg to exec('some.exe arg')? n00m Python 5 05-05-2008 02:58 PM
Trouble with setTimeout(arg, arg) nat.hourt@gmail.com Javascript 7 11-12-2005 05:13 PM
Modifying an arg of va_list Jon C Programming 7 07-15-2005 07:12 AM



Advertisments