Example #1
0
        public static void ModifyCommand(Symbol name, object expr, int pos)
        {
            var val   = Runtime.Force(EvalCommand(expr, pos));
            var frame = Runtime.GetFrameAt(pos);

            if (frame == null || !frame.Modify(name, val))
            {
                Runtime.PrintError("Lexical variable not found");
            }
        }