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))); }
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))); }
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)); }