On Tue, Jun 28, 2005 at 11:02:48AM +0200, Gerd Pokorra wrote:
>  I am using pugs 6.2.7. Is it already possible to find out if a
> subroutine was called in a void context. Does the want function
> provide this feature.

In the interactive shell you can try it out:

    pugs> want
    'Void'

However I see that the individual statements are still executed
in Slurpy context:

    $ pugs -e 'sub foo { say want }; foo; bar;'
    List (Any)

That I think is a bug.  Can you add some tests to t/builtins/want.t
to exercise that feature? I have sent a commit bit invitation mail
to you preemptively. :-)

Thanks!
/Autrijus/

Attachment: pgpG4pUPb1xX6.pgp
Description: PGP signature

Reply via email to