diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-07-27 21:17:53 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-07-27 21:17:53 +0000 |
commit | d94e81e664794db1bd31e05fa94a9d921b4d093b (patch) | |
tree | dd7fb38d17a98b2eceae3676c1a25384236d6e8c /cpp/src/Slice/Grammar.y | |
parent | Deprecated nonmutating in Parser; replaced throughout with idempotent + (diff) | |
download | ice-d94e81e664794db1bd31e05fa94a9d921b4d093b.tar.bz2 ice-d94e81e664794db1bd31e05fa94a9d921b4d093b.tar.xz ice-d94e81e664794db1bd31e05fa94a9d921b4d093b.zip |
Better nonmutating warning
Diffstat (limited to 'cpp/src/Slice/Grammar.y')
-rw-r--r-- | cpp/src/Slice/Grammar.y | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/cpp/src/Slice/Grammar.y b/cpp/src/Slice/Grammar.y index e3c3526a05f..bb8fc82fc2c 100644 --- a/cpp/src/Slice/Grammar.y +++ b/cpp/src/Slice/Grammar.y @@ -732,10 +732,13 @@ operation_preamble if(firstWarning) { msg += ";\n"; - msg += "You should replace it with 'idempotent' plus Freeze metadata\n"; - msg += "(if you use a Freeze evictor) and/or [\"cpp:const\"] (if you\n"; - msg += "want a const member function on the generated C++ servant\n"; - msg += "base class)."; + msg += "You should use instead 'idempotent' plus:\n"; + msg += " - Freeze metadata ([\"freeze:read\"], [\"freeze:write\"]) if you implement your objects with a Freeze evictor\n"; + msg += " - [\"nonmutating\"], if you need to maintain compatibility with operations that expect "; + msg += "'Nonmutating' as operation-mode. With this metadata, the generated code sends "; + msg += "'Nonmutating' instead of 'Idempotent'\n"; + msg += " - [\"cpp:const\"], to get a const member function on the generated C++ servant base class"; + firstWarning = false; } |