xo-numeric: streamline setup

This commit is contained in:
Roland Conybeare 2026-03-16 14:41:28 -05:00
commit 884a6074d7
8 changed files with 190 additions and 241 deletions

View file

@ -0,0 +1,25 @@
/** @file SetupNumeric.hpp
*
* @author Roland Conybeare, Feb 2026
**/
#pragma once
#include "PrimitiveRegistry.hpp"
#include <xo/alloc2/Collector.hpp>
namespace xo {
namespace scm {
/** Setup numeric facet dispatch **/
struct SetupNumeric {
public:
static bool register_facets();
/** Register primitive factories with primitive registry **/
static bool register_primitives(obj<ARuntimeContext> rcx,
InstallSink sink,
InstallFlags flags);
};
}
}
/* end SetupNumeric.hpp */