From b710505709266feeeffc4c572f35071c76fab5a9 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Tue, 13 Jan 2026 01:40:48 -0500 Subject: [PATCH] + xo-interpreter2 scaffold for constant expression [WIP] --- include/xo/object2/DFloat.hpp | 1 + include/xo/object2/DInteger.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/include/xo/object2/DFloat.hpp b/include/xo/object2/DFloat.hpp index 0812a59..ab38d07 100644 --- a/include/xo/object2/DFloat.hpp +++ b/include/xo/object2/DFloat.hpp @@ -14,6 +14,7 @@ namespace xo { struct DFloat { using AAllocator = xo::mm::AAllocator; using ppindentinfo = xo::print::ppindentinfo; + using value_type = double; explicit DFloat(double x) : value_{x} {} diff --git a/include/xo/object2/DInteger.hpp b/include/xo/object2/DInteger.hpp index d125fc4..8cb109f 100644 --- a/include/xo/object2/DInteger.hpp +++ b/include/xo/object2/DInteger.hpp @@ -15,6 +15,7 @@ namespace xo { struct DInteger { using AAllocator = xo::mm::AAllocator; using ppindentinfo = xo::print::ppindentinfo; + using value_type = long; explicit DInteger(long x) : value_{x} {}