createObject() public static method

public static createObject ( IoState state ) : IoList
state IoState
return IoList
Beispiel #1
0
        public static IoObject slotArguments(IoObject target, IoObject locals, IoObject message)
        {
            IoMessage self = target as IoMessage;
            IoList    list = IoList.createObject(target.state);

            foreach (IoObject o in self.args)
            {
                list.append(o);
            }
            return(list);
        }
Beispiel #2
0
Datei: IoList.cs Projekt: ypyf/io
        public static IoObject slotWith(IoObject target, IoObject locals, IoObject message)
        {
            IoMessage m = message as IoMessage;
            IoList    o = IoList.createObject(target.state) as IoList;

            for (int i = 0; i < m.args.Count; i++)
            {
                IoObject obj = m.localsValueArgAt(locals, i);
                o.list.Add(obj);
            }
            return(o);
        }