Boost logo

Boost :

From: Rene Rivera (grafik666_at_[hidden])
Date: 2003-05-04 00:09:06


[2003-05-04] Noel Yap wrote:

>"Justin M. Lewis" wrote:
>> > Then all you really need is one reference wrapper that does what ref<>
>> > does without the implicit type casts.
>> >
>>
>> It still wouldn't tell you the intended use, unless you're willing to
type
>> template notation all over your code. So, you couldn't use the ref()
>> function anymore, as well. And, even then, it doesn't differentiate
between
>> out and in_out, and in, if you're using my version of in.
>
>Again, there's no need for out parameters; they should be returned from
>functions.
>
>In parameters are const.
>
>In/out parameters are not const.
>
>Given the above, you should be able to tell them apart.

I'm almost sorry to jump into this very long discussion....

But I know of at least one need for "out" parameters:

    An asynchronous call that needs to "return" results. But because it's
asynch it can't return it as the result of the call.

-- grafik - Don't Assume Anything
-- rrivera_at_[hidden] - grafik_at_[hidden]
-- 102708583_at_icq


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk