Beispiel #1
0
        public void AddMethod(int inlet, MethodObject d)
        {
            DynamicMethodObject dyn = DynamicMethods.Create(d);

            m_object     = dyn;
            methodflags |= MethodFlags.f_anything;
        }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
        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);
            }
        }
Beispiel #4
0
        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);
            }
        }
Beispiel #5
0
        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);
            }
        }