createObject() 공개 정적인 메소드

public static createObject ( IoState state ) : IoList
state IoState
리턴 IoList
예제 #1
0
파일: IoMessage.cs 프로젝트: ypyf/io
        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);
        }
예제 #2
0
파일: IoList.cs 프로젝트: 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);
        }