xo-interpreter: + PrimitiveBase.name_ + populate
This commit is contained in:
parent
79d32b61c6
commit
7ca1366bec
2 changed files with 11 additions and 6 deletions
|
|
@ -28,7 +28,7 @@ namespace xo {
|
|||
|
||||
// add(x,y)
|
||||
{
|
||||
gp<Object> rhs = xo::obj::make_primitive(mm, add64);
|
||||
gp<Object> rhs = xo::obj::make_primitive(mm, "add", add64);
|
||||
TypeDescr td = Reflect::require<decltype(add64)>();
|
||||
rp<Variable> lhs = Variable::make("add", td);
|
||||
gp<Object> * addr = env->establish_var(lhs.borrow());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue