xo-numeric: expand error message on bad dispatch
This commit is contained in:
parent
5791cd59ce
commit
0083f23aae
1 changed files with 5 additions and 13 deletions
|
|
@ -38,8 +38,12 @@ namespace xo {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
tosn(ss,
|
tosn(ss,
|
||||||
error_headline,
|
error_headline,
|
||||||
|
xtag("x.tseq", x._typeseq()),
|
||||||
xtag("x.type", TypeRegistry::id2name(x._typeseq())),
|
xtag("x.type", TypeRegistry::id2name(x._typeseq())),
|
||||||
xtag("y.type", TypeRegistry::id2name(y._typeseq())));
|
xtag("x.data", x.data()),
|
||||||
|
xtag("y.tseq", y._typeseq()),
|
||||||
|
xtag("y.type", TypeRegistry::id2name(y._typeseq())),
|
||||||
|
xtag("y.data", y.data()));
|
||||||
|
|
||||||
return DRuntimeError::make(rcx.allocator(),
|
return DRuntimeError::make(rcx.allocator(),
|
||||||
caller,
|
caller,
|
||||||
|
|
@ -59,18 +63,6 @@ namespace xo {
|
||||||
"incomparable types in x*y",
|
"incomparable types in x*y",
|
||||||
&AnonymizedNumericOps::multiply_,
|
&AnonymizedNumericOps::multiply_,
|
||||||
x, y);
|
x, y);
|
||||||
|
|
||||||
#ifdef OBSOLETE
|
|
||||||
KeyType key(x._typeseq(), y._typeseq());
|
|
||||||
|
|
||||||
auto target_fn
|
|
||||||
= NumericDispatch::instance().dispatch_[key].multiply_;
|
|
||||||
|
|
||||||
if (!target_fn)
|
|
||||||
assert(false);
|
|
||||||
|
|
||||||
return (*target_fn)(rcx, x.data(), y.data());
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
obj<AGCObject>
|
obj<AGCObject>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue