Commit Graph

2 Commits

Author SHA1 Message Date
Simon Taylor
19d8e63a00 Address Fergus's review comments about the change
Estimated hours taken: 0.25
Branches: main

Address Fergus's review comments about the change
to add unification expressions to the language.

doc/reference_manual.texi:
	Be more explicit about the evaluation order
	of unification expressions.

	Fix some formatting errors.

library/ops.m:
	Fix a comment -- `@' is not an ISO Prolog operator,
	it is a Mercury extension.

tests/hard_coded/unify_expression.{m,exp}:
	Test the evaluation order of unification expressions.
2001-12-10 06:11:36 +00:00
Simon Taylor
1cb5c6ece9 Add unification expressions, written `X @ Y', to the language.
Estimated hours taken: 1

Add unification expressions, written `X @ Y', to the language.
`X @ Y' unifies X and Y and returns the result. Unification
expressions can make switches more compact.

library/ops.m:
	Add the operator `@'.

compiler/make_hlds.m:
	Expand unification expressions.

NEWS:
doc/reference_manual.texi:
w3/news/newsdb.inc:
	Document the new syntax.

tests/hard_coded/Mmakefile:
tests/hard_coded/unify_expression.{m,exp}:
	Test case.
2001-11-12 11:08:18 +00:00