develooper Front page | perl.golf | Postings from July 2002

Re: more minigolf

Thread Previous | Thread Next
From:
Andrew.Savige
Date:
July 12, 2002 04:52
Subject:
Re: more minigolf
Message ID:
694BB7191495D51183A9005004C0B05452DE78@ir-exchange-srv.ir.com.au
En op 12 juli 2002 sprak FatPhil:
> So I'd call it a high-precedence -1 trick rather than a
> prefix -1 trick.

I think the main point of Ton's trick is to get around
that annoying "use of pop without parens is ambiguous"
error message when you use:
  pop-1
I have seen others work around this with:
  pop()-1
or:
  -1+pop
but Ton's:
  ~-pop;
is better (and I admit I hadn't noticed it before).

/-\

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About