On Tue, May 11, 2010 at 8:34 PM, Seiji Sam Lee <[email protected]> wrote:
> var echo=$out.puts;
...
> Are there any way to allow that code like that works fine? That is, “echo”
> call catch correct “FILE*” parameter of “$out”?

Something like:

var echo = function() {
  $out.puts.apply( $out, Array.prototype.slice.apply( arguments,[0]) );
};


-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to