Skip to content
Success

Changes

Summary

  1. Change enum functions return type (details)
  2. more proofreading on enumeration chapters (details)
  3. 1. Change return value of typed Enum in null context: they now return the position. Therefore, printf with enumeration value will no longer be supported. 2. sout now will return the enumeration value. So sout | enumValue will print what we expect. 3. Provide enum.hfa, which contains traits that related to enum. 4. Implement functions declare in enum.hfa for enum types, so enum type fulfill the traits. Known defeat: error if we use the enum traits on enum types. They work but c compiler gives an warning (details)
  4. Missing changes for the last commit (details)
Commit cf191acabcbe38d3f82a9149c4febffefea40a9a by j82liang
Change enum functions return type
The file was modifiedsrc/Validate/ImplementEnumFunc.cpp
Commit f6321173aa4ceab077c8b556511650b082af253e by Peter Buhr
more proofreading on enumeration chapters
The file was modifieddoc/theses/jiada_liang_MMath/CFAenum.tex
The file was modifieddoc/theses/jiada_liang_MMath/intro.tex
The file was modifieddoc/theses/jiada_liang_MMath/relatedwork.tex
The file was modifieddoc/theses/jiada_liang_MMath/background.tex
Commit eb7586e994c3710bc421ab2b1c131baf040bf98d by j82liang
1. Change return value of typed Enum in null context: they now return the position. Therefore, printf with enumeration value will no longer be supported. 2. sout now will return the enumeration value. So sout | enumValue will print what we expect. 3. Provide enum.hfa, which contains traits that related to enum. 4. Implement functions declare in enum.hfa for enum types, so enum type fulfill the traits. Known defeat: error if we use the enum traits on enum types. They work but c compiler gives an warning
The file was modifiedtests/enum_tests/typedIntEnum.cfa
The file was modifiedsrc/ResolvExpr/CandidateFinder.cpp
The file was modifiedtests/enum_tests/stringEnum.cfa
The file was modifiedsrc/ResolvExpr/ConversionCost.cc
The file was modifiedsrc/main.cc
The file was modifiedsrc/Validate/ImplementEnumFunc.cpp
The file was modifiedtests/enum_tests/.expect/anonymous.txt
The file was modifiedsrc/ResolvExpr/CastCost.cc
The file was modifiedtests/enum_tests/.expect/stringEnum.txt
The file was modifiedtests/enum_tests/anonymous.cfa
The file was modifiedtests/enum_tests/position.cfa
The file was modifiedtests/enum_tests/enumInlineValue.cfa
Commit c5c123f63963ca0018deea205deb1482ee47b1b0 by j82liang
Missing changes for the last commit
The file was addedlibcfa/src/enum.cfa
The file was addedtests/enum_tests/.expect/funcEnum.txt
The file was addedtests/enum_tests/.expect/position.txt