xo-interpreter2 stack: use xo-numeric/ to support op*
This commit is contained in:
parent
d6bf210714
commit
0b9ff6be06
8 changed files with 29 additions and 8 deletions
|
|
@ -14,7 +14,9 @@ namespace xo {
|
|||
**/
|
||||
class NumericPrimitives {
|
||||
public:
|
||||
/** poly divide **/
|
||||
/** polymorphic (in both arguments) multiply **/
|
||||
static DPrimitive_gco_2_gco_gco s_mul_gco_gco_pm;
|
||||
/** polymorphic (in both arguments) divide **/
|
||||
static DPrimitive_gco_2_gco_gco s_div_gco_gco_pm;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,10 @@ namespace xo {
|
|||
|
||||
namespace scm {
|
||||
|
||||
DPrimitive_gco_2_gco_gco
|
||||
NumericPrimitives::s_mul_gco_gco_pm("_mul",
|
||||
&NumericDispatch::multiply);
|
||||
|
||||
DPrimitive_gco_2_gco_gco
|
||||
NumericPrimitives::s_div_gco_gco_pm("_div",
|
||||
&NumericDispatch::divide);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue