Exemplo n.º 1
0
        object IApply.Apply(object[] args)
        {
            var value = CheckedValue as IApply;

            if (value == null)
            {
                throw new LispException("The value of the global variable {0} is not a function.", ContextualName);
            }
            return(Runtime.Apply(value, args));
        }
Exemplo n.º 2
0
        public static object Funcall(string functionName, params object[] args)
        {
            var sym = Runtime.FindSymbol(functionName);

            return(Runtime.Apply(sym, args));
        }