in reply to Re (tilly) 1: not: function or operator?
in thread not: function or operator?

"print not 0, 1" dosen't print anything, but "print my_not 0, 1" prints 11.
  • Comment on Re: Re (tilly) 1: not: function or operator?

Replies are listed 'Best First'.
Re (tilly) 3: not: function or operator?
by tilly (Archbishop) on Mar 03, 2001 at 10:42 UTC
    Ah, then it must really be an operator. As you notice, it manages to force its arguments into boolean context. But it does that and takes a whole list of arguments quite cheerfully. How would a function do that?
Re: Re: Re (tilly) 1: not: function or operator?
by MrNobo1024 (Hermit) on Mar 03, 2001 at 10:47 UTC
    "not 0 | 1" is an empty string, but "my_not 0 | 1" is 1.