095. Array constructor with [] was introduced in Fortran 2003. Still valid is (//)#

topic: Arrays

Note

This tip is a draft1.

Using [] for an array constructor was introduced in Fortran 2003, although many Fortran 95 compilers supported it. The older syntax (//) is still valid.

print*, all([4,9] == (/4,9/)) ! T



1

From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.