For what it's worth, here is how to define, in J, a
word which parallels C's modified assignment
operations:
modf=:1 :0
:
(x)=:(".x)u y
)
Its use pattern is:
quotedname verb modf noun
Its meaning is:
name =: name verb noun
where name is the name which was quoted.
For example:
N=:10
'N' + modf 3
'N' * modf 2
N will have the value 26 after executing these lines.
If any of this needs explaining, please let me know.
FYI,
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm