Creating a new variable with the same name is equivalent to having a
declared variable that you can change in other languages, a mutable
variable? Thus, all variables in J are mutable? Not just some bitmap
arrays which are in-place editied under certain conditions? /Erling
On 2017-09-29 02:19, Erling Hellenäs wrote:
There usually have to be exceptions. Does it mean that tacit J does
not limit mutable state more than explicit J? It seems when you have
no variables at least the variables are not mutable? /Erling
On 2017-09-29 01:45, Raul Miller wrote:
Tacit J can have mutable state.
For example:
set=:1!:2&(<'state')
get=:1!:1 bind (<'state')
It's also possible implement mutable state in tacit J without using
foreigns (nor the explicit conjunction), but (depending on your
approach), it can get long.
Thanks,
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm