Exemplo n.º 1
0
        private IodineObject format(VirtualMachine vm, IodineObject self, IodineObject[] args)
        {
            string          format    = this.Value;
            IodineFormatter formatter = new IodineFormatter();

            return(new IodineString(formatter.Format(vm, format, args)));
        }
Exemplo n.º 2
0
            private IodineObject Format(VirtualMachine vm, IodineObject self, IodineObject[] args)
            {
                var thisObj = self as IodineString;

                if (thisObj == null)
                {
                    vm.RaiseException(new IodineFunctionInvocationException());
                    return(null);
                }

                string format    = thisObj.Value;
                var    formatter = new IodineFormatter();

                return(new IodineString(formatter.Format(vm, format, args)));
            }
Exemplo n.º 3
0
		private IodineObject format (VirtualMachine vm, IodineObject self, IodineObject[] args)
		{
			string format = this.Value;
			IodineFormatter formatter = new IodineFormatter ();
			return new IodineString (formatter.Format (vm, format, args));
		}