There is a facility in J for reference

If you look at mapped files you will see that there you are using the files
by reference

All pointers and all the difficult operations with references are done under
the cover so you do not need to worry of being out of bounds when using
these facilities

In many ways there is no difference between using the J nouns that are in
the workarea an the J nouns that refer to nouns even if they are
fundamentally different

If you change a file then it gets reflected directly in the noun that is
mapped to it while a noun that has been created from that same file does not
change

Have a look at the mapped file labs and you will see the difference

2006/3/20, p j <[EMAIL PROTECTED]>:
>
> lets define r: as a monad to return a reference to its
> right argument, and would display something like:
>   r: myvar
> 'myvar'
> A reference would interact normally with most verbs
> returning the value of its variable, but with =. and
> =: would update the variable pointed to by the
> reference.
>

--
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23,
Skype: gosiminn, gsm: +3546985532
802 Selfoss ,t-póst: [EMAIL PROTECTED]
http://groups.google.com/group/J-Programming


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
          /|_      .-----------------------------------.

         ,'  .\  /  | Með léttri lund verður        |
     ,--'    _,'   | Dagurinn í dag                     |
    /       /       | Enn betri en gærdagurinn  |
   (   -.  |        `-----------------------------------'
   |     ) |
  (`-.  '--.)
   `. )----'
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to