[m-rev.] Extend recognition of field access syntax
Fergus Henderson
fjh at cs.mu.OZ.AU
Wed Dec 18 17:18:05 AEDT 2002
On 18-Dec-2002, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> Peter Moulder, Wednesday, 18 December 2002:
> > On Wed, Dec 18, 2002 at 12:30:40PM +1100, Ralph Becket wrote:
> >
> > > @example
> > > -:- func increment_field3(type1) = type1.
> > > +:- func type1 ~ increment_field3 = type1.
> > ^^^
> > Presumably a typo. (`~' doesn't occur elsewhere in the patch, and isn't
> > mentioned in reference_manual.texi other than as a unary operator.)
>
> Fixed.
>
> > > +++ hard_coded/field_syntax.m
> > > ...
> > > io.format(...)
> >
> > I'm guessing this is fine, but just in case, I'll mention that nothing
> > in the head brach that I can see uses `.' syntax yet, and using `.'
> > hinders bootstrapping. Just thought I'd mention it.
>
> Er, the main branch already understands `.' as a module separator (I put
> that change in last week.) How would this affect bootstrapping? The
> version of the test suite you use should be matched against the version
> of the compiler you are running.
That should be fine. In fact, ideally the change which added `.'
should have added a test case for it too. But it should be fine
to include `.' as module qualifier in this test case.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list