CARVIEW |
Select Language
HTTP/2 200
cache-control: max-age=43200
server: Combust/Plack (Perl)
vary: Accept-Encoding
content-encoding: gzip
content-length: 2386
content-type: text/html; charset=utf-8
last-modified: Sat, 11 Oct 2025 21:37:30 GMT
date: Sat, 11 Oct 2025 21:37:30 GMT
strict-transport-security: max-age=15768000
Re: strictly no indirect object syntax? - nntp.perl.org
Front page | perl.perl5.porters |
Postings from July 2008
nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About

Re: strictly no indirect object syntax?
Thread Previous | Thread NextFrom:
Yuval KogmanDate:
July 4, 2008 03:04Subject:
Re: strictly no indirect object syntax?Message ID:
20080704100359.GY20328@woobling.orgOn Fri, Jul 04, 2008 at 08:13:35 +0200, H.Merijn Brand wrote: > I'm prepared to alter all my code for this to > > print { $fh } data; > > Which is the documented alternative, and looks (almost) as good as the > common use of your example. That's still indirect object syntax, and for print (and presumably other builtins) it's still special cased to compile to the print opcode, not an actual method call: • [syeeda:~] nothingmuch % perl -MO=Concise -e 'print { $fh } "foo"' 8 <@> leave[1 ref] vKP/REFC ->(end) 1 <0> enter ->2 2 <;> nextstate(main 2 -e:1) v:{ ->3 7 <@> print vKS ->8 3 <0> pushmark s ->4 5 <1> rv2gv sKR/1 ->6 - <@> scope sK ->5 - <0> ex-nextstate v ->4 - <1> ex-rv2sv sK/1 ->- 4 <$> gvsv(*fh) s ->5 6 <$> const(PV "foo") s ->7 -e syntax OK • [syeeda:~] nothingmuch % perl -MO=Concise -e 'typo { $fh } "foo"' 8 <@> leave[1 ref] vKP/REFC ->(end) 1 <0> enter ->2 2 <;> nextstate(main 2 -e:1) v:{ ->3 7 <1> entersub[t1] vKS/TARG ->8 3 <0> pushmark s ->4 - <@> scope lKM ->5 - <0> ex-nextstate v ->4 - <1> ex-rv2sv sKM/1 ->- 4 <$> gvsv(*fh) s ->5 5 <$> const(PV "foo") sM ->6 6 <$> method_named(PV "typo") ->7 -e syntax OK -- Yuval Kogman <nothingmuch@woobling.org> https://nothingmuch.woobling.org 0xEBD27418Thread Previous | Thread Next
- strictly no indirect object syntax? by Nicholas Clark
- Re: strictly no indirect object syntax? by Gabor Szabo
- Re: strictly no indirect object syntax? by Nicholas Clark
- Re: strictly no indirect object syntax? by Bram
- Re: strictly no indirect object syntax? by chromatic
- Re: strictly no indirect object syntax? by Gabor Szabo
- Re: strictly no indirect object syntax? by Bram
- RE: strictly no indirect object syntax? by Jan Dubois
- Re: strictly no indirect object syntax? by Abigail
- Re: strictly no indirect object syntax? by Eric Wilhelm
- RE: strictly no indirect object syntax? by Jan Dubois
- Re: strictly no indirect object syntax? by Aristotle Pagaltzis
- Re: strictly no indirect object syntax? by Rick Delaney
- Re: strictly no indirect object syntax? by Aristotle Pagaltzis
- Re: strictly no indirect object syntax? by Reini Urban
- Re: strictly no indirect object syntax? by Jonathan Rockway
- Re: strictly no indirect object syntax? by Ben Morrow
- Re: strictly no indirect object syntax? by Aristotle Pagaltzis
- Re: strictly no indirect object syntax? by Ben Morrow
- Re: strictly no indirect object syntax? by Alexandr Ciornii
- Re: strictly no indirect object syntax? by Abigail
- RE: strictly no indirect object syntax? by Jan Dubois
- Re: strictly no indirect object syntax? by H.Merijn Brand
- Re: strictly no indirect object syntax? by Yuval Kogman
- Re: strictly no indirect object syntax? by Reini Urban
- Re: strictly no indirect object syntax? by Ed Avis
- Re: strictly no indirect object syntax? by merlyn
- Re: strictly no indirect object syntax? by Ed Avis
- Re: strictly no indirect object syntax? by Abigail
- RE: strictly no indirect object syntax? by Ed Avis
- Re: strictly no indirect object syntax? by Jesse Vincent
- Re: strictly no indirect object syntax? by chromatic
- Re: strictly no indirect object syntax? by Elliot Shank
- RE: strictly no indirect object syntax? by Ed Avis
- Re: strictly no indirect object syntax? by Abigail
- RE: strictly no indirect object syntax? by Ed Avis
- Re: strictly no indirect object syntax? by Reini Urban
- Re: strictly no indirect object syntax? by David Nicol
- Re: strictly no indirect object syntax? by H.Merijn Brand
- Re: strictly no indirect object syntax? by Yitzchak Scott-Thoennes
- Re: strictly no indirect object syntax? by Glenn Linderman
- Re: strictly no indirect object syntax? by Paul Fenwick
- Re: strictly no indirect object syntax? by Aristotle Pagaltzis
- Re: strictly no indirect object syntax? by Bram
- Re: strictly no indirect object syntax? by Bram
- Re: strictly no indirect object syntax? by Ben Morrow
- Re: strictly no indirect object syntax? by Dr.Ruud
- Re: strictly no indirect object syntax? by David Golden
- Re: strictly no indirect object syntax? by Yuval Kogman
- Re: strictly no indirect object syntax? by Tom Christiansen
- Re: strictly no indirect object syntax? by demerphq
nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About