public void AddMethod(int inlet, MethodObject d) { DynamicMethodObject dyn = DynamicMethods.Create(d); m_object = dyn; methodflags |= MethodFlags.f_anything; }
public void AddMethod(int inlet, Symbol sel, MethodAnything d) { DynamicMethodAnything dyn = DynamicMethods.Create(d); if (inlet == 0 && sel == _) { m_anything = dyn; methodflags |= MethodFlags.f_anything; } else { AddMethodIntern(inlet, sel, Kind.k_anything, dyn); } }
public void AddMethod(int inlet, Symbol sel, MethodPointer d) { DynamicMethodPointer dyn = DynamicMethods.Create(d); if (inlet == 0 && sel == _pointer) { m_pointer = dyn; methodflags |= MethodFlags.f_pointer; } else { AddMethodIntern(inlet, sel, Kind.k_pointer, dyn); } }
public void AddMethod(int inlet, Symbol sel, MethodList d) { DynamicMethodList dyn = DynamicMethods.Create(d); if (inlet == 0 && sel == _list) { m_list = dyn; methodflags |= MethodFlags.f_list; } else { AddMethodIntern(inlet, sel, Kind.k_list, dyn); } }
public void AddMethod(int inlet, Symbol sel, MethodSymbol d) { DynamicMethodSymbol dyn = DynamicMethods.Create(d); if (inlet == 0 && sel == _symbol) { m_symbol = dyn; methodflags |= MethodFlags.f_symbol; } else { AddMethodIntern(inlet, sel, Kind.k_symbol, dyn); } }