Re: Perl extension

From: Date: Tue, 02 Mar 2004 07:48:34 +0000
Subject: Re: Perl extension
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-8295@lists.php.net to get a copy of this message
On Tue, Mar 02, 2004 at 12:10:51AM +0200, Andi Gutmans wrote: > $x = new Perl("Test"); > $y = new PerlScalar($x); The above could generate mistakes. It is better to use perl_wantarray(something) or perl_wantarray(); something;. > Any ideas or suggestions? It would also be cool if people could mess around > with it a bit and give us some feedback. Is this possible (?): $x = new Perl("Test"); $y = $x->f(); // scalar context $x->f(); // void context $y = array( $x->f() ); // array context or maybe $y = perl_array( $x->f() ); Best regards, -- Piotr Klaban

« previous php.internals (#8295) next »