This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin 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: [setup PATCH] next_dialog micropatch (2)


Robert Collins wrote:
> On Tue, 2003-07-29 at 06:50, Max Bowsher wrote:
>
>> You realise that *all* I am doing with this patch is to change how data
is
>> passed between a function and it's caller?
>
>
> Yes, and its that aspect I objected to. I don't understand what was so
> unclear.

I'm unclear on why you objected and what you want me to do instead.
Please bear in mind that I have never read any Design Patterns books, and
have no idea what an "Asynchronous Completion Token" is.

I'm also extremely puzzled, since you seem to be objecting to the use of a
return value to communicate from a callee to a caller function. Any other
method *must* be more complicated, and I do believe in avoiding unnecessary
complication.

Just in case I'm not explaining myself well enough in words:

int foo()
{
    return 8;
}

int main()
{
    printf("%u", foo());
    return 0;
}

In the above, you wouldn't want me to make foo void, and find another way to
pass the value 8 back to main.... would you?


Max.


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