summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/level-1/funcs.cpp
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2019-11-25 17:36:41 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2019-11-25 17:36:41 -0800
commit59a4cccd495e925703dbbce74e733efd8e453f16 (patch)
treeddf7708867beb233feaf518888786160a64e1df1 /starts/meaning-vm/level-1/funcs.cpp
parent8172f109ed55b8a02e7e498566b7ba12e346f7e2 (diff)
downloadstandingwithresilience-59a4cccd495e925703dbbce74e733efd8e453f16.tar.gz
standingwithresilience-59a4cccd495e925703dbbce74e733efd8e453f16.zip
add isanonymous, movetoname, decl[s], and nothing concept
Diffstat (limited to 'starts/meaning-vm/level-1/funcs.cpp')
-rw-r--r--starts/meaning-vm/level-1/funcs.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/starts/meaning-vm/level-1/funcs.cpp b/starts/meaning-vm/level-1/funcs.cpp
index c9cca37..0a481e9 100644
--- a/starts/meaning-vm/level-1/funcs.cpp
+++ b/starts/meaning-vm/level-1/funcs.cpp
@@ -74,6 +74,11 @@ value<T>* valloc(T const & val)
return ret;
}
+concept* hyphenate(concept* a, concept* b)
+{
+ return getnamed(getname(a)->data + "-" + getname(b)->data);
+}
+
template value<std::string>* valloc<std::string>(std::string const & val);
template value<int>* valloc<int>(int const & val);