leftibot ff06e1f0c7 Address review: reject non-declaration statements inside namespace blocks
Only def, var, auto, and global declarations are now allowed inside
namespace { } blocks. Arbitrary expressions, assignments, and function
calls are rejected with an eval_error. Added compiled tests verifying
that expressions, function calls, and assignments are rejected.

Requested by @lefticus in PR #675 review.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 18:44:24 -06:00
..
chaiscript_algebraic.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript_common.hpp Address review: C++-style namespace scoping and block declarations 2026-04-13 17:16:55 -06:00
chaiscript_engine.hpp Address review: C++-style namespace scoping and block declarations 2026-04-13 17:16:55 -06:00
chaiscript_eval.hpp Address review: reject non-declaration statements inside namespace blocks 2026-04-13 18:44:24 -06:00
chaiscript_optimizer.hpp Fix #635: Segfault in async result via dangling pointer from optimized for loop (#671) 2026-04-12 16:47:06 -06:00
chaiscript_parser.hpp Address review: C++-style namespace scoping and block declarations 2026-04-13 17:16:55 -06:00
chaiscript_posix.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript_prelude_docs.hpp Fix #12: Document reflection and introspection capabilities 2026-04-09 21:43:56 -06:00
chaiscript_prelude.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript_tracer.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript_unknown.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript_windows.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00