Files
mercury/tests/hard_coded/sv_record_update.exp
Jonathan Morgan b743e6283f Enhance the state variable notation to recognise !X ^ field_list :=
Estimated hours taken: 2.5
Branches: main

Enhance the state variable notation to recognise !X ^ field_list :=
Term as a synonym for
!:X = !.X ^ field_list := Term.

NEWS:
	Announce the new construct.

compiler/add_clause.m:
	Recognise this new construct, and transform it.

doc/reference_manual.texi:
	Document the change.

tests/hard_coded/Mmakefile:
tests/hard_coded/sv_record_update.m:
tests/hard_coded/sv_record_update.exp:
	A test case for this feature.
2007-06-01 12:54:15 +00:00

4 lines
56 B
Plaintext

type1(3, 12)
type2(type1(5, 12), 13)
["1" - 1, "2" - 2]