olafbuddenha...@gmx.net, le Fri 23 Sep 2011 03:26:21 +0200, a écrit :
> On Tue, Sep 13, 2011 at 08:54:09AM +0200, Samuel Thibault wrote:
> > olafbuddenha...@gmx.net, le Mon 12 Sep 2011 20:15:36 +0200, a écrit :
> 
> > > > Why no "in" or "out" before parameter "device" ?
> > > 
> > > Well, I would have said that the first parameter is just special.
> > > (It's the port on which the RPC was invoked; basically it's only
> > > there to give it a name.) However, I just saw that device_open()
> > > also has other parameters without a direction...
> > 
> > These other parameters are integers or constant character arrays, so
> > they are implictly in.
> 
> Maybe I'm missing something, but I fail to see why integers or character
> arrays would by any more implicitly IN than other types?...

Because they can't be OUT.

> Perhaps IN is simply the default in general, and it's only explicitly
> specified in most interfaces for clearity? But that's pure speculation
> of course :-)

IIRC somebody said so earlier.

Samuel

Reply via email to