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.
Gerd Pokorra
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/