Pointers and references: Difference between revisions

Content deleted Content added
m omit JavaScript
Tikkanz (talk | contribs)
m →‎{{header|J}}: formatting
Line 418: Line 418:
J's "boxes" are, in essence, pointers (except with pass-by-value semantics instead of pass-by-reference semantics, and J does not allow arithmetic on boxes).
J's "boxes" are, in essence, pointers (except with pass-by-value semantics instead of pass-by-reference semantics, and J does not allow arithmetic on boxes).


< used monadically boxes its argument (much like C's & creates a pointer to a value).
<code><</code> used monadically boxes its argument (much like C's <code>&</code> creates a pointer to a value).


> used monadically unboxes its argument (much like C's * dereferences a pointer).
<code>></code> used monadically unboxes its argument (much like C's <code>*</code> dereferences a pointer).


=={{header|Java}}==
=={{header|Java}}==