Const contract on function return Value.
Generally we want to avoid accidental change of value of a constant or of a variable. Originally I'd copy value on access, but this changed it so a const Value is returned instead and copy is done only when it's needed.
Showing
- libwccl/ops/affix.cpp 1 addition, 1 deletionlibwccl/ops/affix.cpp
- libwccl/ops/constant.h 3 additions, 4 deletionslibwccl/ops/constant.h
- libwccl/ops/functions.h 4 additions, 4 deletionslibwccl/ops/functions.h
- libwccl/ops/regex.cpp 1 addition, 1 deletionlibwccl/ops/regex.cpp
- libwccl/ops/tolower.cpp 2 additions, 2 deletionslibwccl/ops/tolower.cpp
- libwccl/ops/toupper.cpp 1 addition, 1 deletionlibwccl/ops/toupper.cpp
- tests/constant_tests.cpp 0 additions, 10 deletionstests/constant_tests.cpp
Please register or sign in to comment