22 str as(
const node& me,
const type& to)
const override {
return str(
new E(*me.cast<RAW>())); }
31 T& get() {
return _val; }
33 const T& get()
const {
return _val; }
37 void* cast(
const type& to)
override {
38 WHEN(to == ttype<T>::get()) .ret(&_val);
40 return super::cast(to);
44 nbool _onSame(
const typeProvidable& rhs)
const override {
45 const me& cast = (
const me&) rhs;
46 return _val == cast._val;
57 nbool _onSame(
const typeProvidable& rhs)
const override {
return true; }
Base class for arithmetic operations on primitive types.
Definition: arithmeticObj.hpp:13
Base class for all AST nodes in byeol language.
Definition: node.hpp:30
Definition: primitiveObj.hpp:18
Definition: primitiveObj.hpp:13
Base class for runtime type information in byeol language.
Definition: type.hpp:12
Interface for objects that can provide their type information.
Definition: typeProvidable.hpp:12