in reply to Re: $a++ allowed by $a-- is not ! why?
in thread $a++ allowed by $a-- is not ! why?
(what the correct name for this? commutable?).commutativity involves only one operation.
and at least two operands which get "permuted". thus, it is pointless to ask for commutativity of an unary operation.$a + $b = $b + $a
thus, ++ does not have any reverse mapping at all.kabel@linux:~> perl my ($z1, $z2) = qw/ z9 Z9 /; print ++ $z1, ", ", ++ $z2, $/; aa0, AA0 kabel@linux:~>
a problem is that "0" has no preimage.++: /\A[A-Z]*[0-9]*\z/ -> /\A[A-Z]*[0-9]*\z/ ++: /\A[a-z]*[0-9]*\z/ -> /\A[a-z]*[0-9]*\z/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $a++ allowed by $a-- is not ! why?
by jonadab (Parson) on Sep 01, 2003 at 15:19 UTC | |
by kabel (Chaplain) on Sep 01, 2003 at 16:35 UTC | |
by jonadab (Parson) on Sep 01, 2003 at 18:33 UTC | |
by tilly (Archbishop) on Sep 01, 2003 at 21:58 UTC | |
by jonadab (Parson) on Sep 02, 2003 at 01:35 UTC | |
by kabel (Chaplain) on Sep 02, 2003 at 08:48 UTC | |
| |
|
Re: Re: Re: $a++ allowed by $a-- is not ! why?
by demerphq (Chancellor) on Sep 01, 2003 at 09:48 UTC | |
by kabel (Chaplain) on Sep 01, 2003 at 10:12 UTC | |
by demerphq (Chancellor) on Sep 01, 2003 at 11:02 UTC |