~maelkum/viuavm

93fe8876041734e1a52614650403a51f7b609bcb — Marek Marecki 5 days ago 5ca184e
Better Pointer::type_name()

For now assume that the pointer is always valid, so we can print the
type name without any problems.
1 files changed, 1 insertions(+), 1 deletions(-)

M new/src/vm/types.cpp
M new/src/vm/types.cpp => new/src/vm/types.cpp +1 -1
@@ 36,7 36,7 @@ auto Float_double::type_name() const -> std::string
namespace viua::vm::types {
auto Pointer::type_name() const -> std::string
{
    return "pointer";
    return ('*' + value->type_name());
}

auto String::type_name() const -> std::string