From 59a4cccd495e925703dbbce74e733efd8e453f16 Mon Sep 17 00:00:00 2001 From: olpc user Date: Mon, 25 Nov 2019 17:36:41 -0800 Subject: add isanonymous, movetoname, decl[s], and nothing concept --- starts/meaning-vm/level-1/baseref.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'starts/meaning-vm/level-1/baseref.hpp') diff --git a/starts/meaning-vm/level-1/baseref.hpp b/starts/meaning-vm/level-1/baseref.hpp index 2f072b6..01026c8 100644 --- a/starts/meaning-vm/level-1/baseref.hpp +++ b/starts/meaning-vm/level-1/baseref.hpp @@ -23,6 +23,8 @@ struct baseref : public level0::baseref operator std::string const &() const { return getname(self)->data; } operator char const *() const { return getname(self)->data.c_str(); } + ref operator-(ref other) { return hyphenate(self.ptr(), other.ptr()); } + std::string dump(ref skipmarkertype, ref skipmarkertarget); }; -- cgit v1.2.3