26 str _onAs(
const T& me,
const type&
to)
const override {
return str(); }
35 T& get() {
return _val; }
37 const T& get()
const {
return _val; }
41 void* cast(
const type& to)
override {
42 WHEN(to == ttype<T>::get()) .ret(&_val);
44 return super::cast(to);
48 nbool _onSame(
const typeProvidable& rhs)
const override {
49 const me& cast = (
const me&) rhs;
50 return _val == cast._val;
Base class for all AST nodes in the byeol language
Definition node.hpp:195
Base class for arithmetic operations on primitive types
Definition scalar.hpp:14
Definition tscalar.hpp:18
Definition tscalar.hpp:13
Weak reference smart pointer with type-safe access
Definition tweak.hpp:16
Core class for runtime type information in byeol language
Definition type.hpp:100
Interface for objects that can provide their type information
Definition typeProvidable.hpp:13