summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/level-1/sugar.hpp
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/sugar.hpp
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/sugar.hpp')
-rw-r--r--starts/meaning-vm/level-1/sugar.hpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/starts/meaning-vm/level-1/sugar.hpp b/starts/meaning-vm/level-1/sugar.hpp
index c34f013..240f768 100644
--- a/starts/meaning-vm/level-1/sugar.hpp
+++ b/starts/meaning-vm/level-1/sugar.hpp
@@ -14,12 +14,8 @@ ref an(ref group);
ref a(ref group, ref name);
ref an(ref group, ref name);
-/*
-inline std::string operator+(vref<std::string> a, char const * b) { return std::string(a) + b; }
-inline std::string operator+(vref<std::string> a, std::string b) { return std::string(a) + b; }
-inline std::string operator+(char const * a, vref<std::string> b) { return a + std::string(b); }
-inline std::string operator+(std::string a, vref<std::string> b) { return a + std::string(b); }
-*/
+bool isanonymous(ref topic);
+ref movetoname(ref anonymous, ref name);
namespace internal {
template <typename... T>
@@ -38,11 +34,12 @@ namespace internal {
}
}
-#define decl(...) \
- intellect::level1::ref __VA_ARGS__; \
- intellect::level1::internal::init_ref_names(#__VA_ARGS__, __VA_ARGS__)
+#define decl(r) \
+ ref r(#r);
-ref operator-(ref a, ref b);
+#define decls(...) \
+ ref __VA_ARGS__; \
+ intellect::level1::internal::init_ref_names(#__VA_ARGS__, __VA_ARGS__)
}
}