[m-dev.] for review: Underscore vars in pragma c code arguments

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Aug 5 17:44:57 AEST 1998


On 05-Aug-1998, Andrew Bromage <bromage at cs.mu.OZ.AU> wrote:
> Fergus Henderson wrote:
> 
> > I don't understand why the `MaybeName = no' case is
> > treated differently than the case where the name starts
> > with an underscore.
> 
> Which way should they be treated?  As an error or just ignored?
> 
> It's not an error to have an output argument which starts with an
> underscore.  Just look at all the output io__state arguments in io.m.
> The most sensible behaviour in this case seems to be just to ignore it.

I agree.  The `MaybeName = no' case occurs where the name given is just `_';
the behaviour should be the same in that case.

> Is it an error to have an output argument which is unnamed?  The
> writer of original code thought so, and since I'm no expert on the
> mechanics of pragma c_code generation I'm in no position to argue.

I think the writer of the original code didn't consider things like
io__state arguments.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.



More information about the developers mailing list