Пример #1
0
        private static void TableImport(Evaluator eval, StackFrame frame)
        {
            var(src, dst, names) = StructureUtils.Split3(frame.args);

            if (names == null && dst.IsPair)
            {
                names = dst;
                dst   = frame.context.atom;
            }

            var srcCtx = GetDictionary(src);
            var dstCtx = GetDictionary(dst);

            string[] nameList = StructureUtils.ListToStringArray(names, "TABLE");

            ContextUtils.ImportSymbols(srcCtx, dstCtx, nameList);

            eval.Return(null);
        }