예제 #1
0
        //Natives
        public Word Visit(Alert alert)
        {
            var result = alert.Expr.Accept(this);

            if (IsError(result))
            {
                return(ErrorFactory.AlertError(alert.Expr, result));
            }
            PyObj pyObj;

            if (IsMemoryBlock(result))//comentar ese if else si se hace la desereferencia en atomic expr.
            {
                pyObj = ((MemoryBlock)result).Value;
            }
            else
            {
                pyObj = (PyObj)result;
            }
            //pyObj = (PyObj)result;//Descomentar esta linea si se hace la desereferencia en atomic expr.
            RuntimeEnvironment.Console.Instance.Alert(pyObj);
            return(null);
        }