Comment

Comment by prirun

One of the most "fun" things with Fortran is the EQUIVALENCE stmt. It specifies that two variables share the same memory, even if they are different types. You can also do array equivalences, so:

  INTEGER ARR1(10), ARR2(5)
  EQUIVALENCE (ARR1(6), ARR2)
  ARR2(1) = 10
will also set ARR1(6) to 10.
parent prirun 15 days ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton