mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-19 11:23:46 +00:00
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.
4 lines
56 B
Plaintext
4 lines
56 B
Plaintext
type1(3, 12)
|
|
type2(type1(5, 12), 13)
|
|
["1" - 1, "2" - 2]
|