That is a silly question:
I have done a classical implementation of File: a constructor, open, close,
eof, isOpen, gets y puts.
But following code only print "Hi world!!"
$out=new File("@out");//really FILE*stdout
$out.puts("Hi world!!"); (1)
var echo=$out.puts;
echo("It must work"); (2)
I catch "FILE*" pointer with "args.This()->GetPointerFromInternalField(2)".
In (1) "args.This()" is "$out" and in (2) "args.This()" is "echo" (I
suppouse) that return NULL calling "GetPointerFromInternalField".
Are there any way to allow that code like that works fine? That is, "echo"
call catch correct "FILE*" parameter of "$out"?
Thanks in advance.
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users