# Using reserved words as variables

**URL:** <https://fortran-lang.discourse.group/t/using-reserved-words-as-variables/6398>\
**Category:** Help\
**Created:** [August 25, 2023, 8:46pm UTC](https://fortran-lang.discourse.group/t/using-reserved-words-as-variables/6398 "2023-08-25T20:46:55Z")\
**Posts on this page:** 2\
**Page:** 4

<div class="post-metadata">

**Author:** ![PierU](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/pieru/32/1848_2.png) [@PierU](https://fortran-lang.discourse.group/u/PierU)\
**Post date:** [September 4, 2023, 8:12pm UTC](https://fortran-lang.discourse.group/t/using-reserved-words-as-variables/6398/62 "2023-09-04T20:12:05Z")

</div>

> [@RonShepard](#):
>
> It depends on the application, of course, but 20+ years ago I had that same kind of choice (between pointers and fixed arrays of max dimension) and I used pointers.

There was a 3rd choice, i.e. allocatable arrays not attached to a derived type. Of course codes sometimes were more complex/less structured because of this constraint, but performances were not hurt by the pointers.

Another solution was to have pointer components anyway, but pass them down to non pointer dummy arguments in the computing routines. Sometimes it was requiring an additional layer of calls, but at least performances were not hurted by the pointers.

Sure, it is now easier with the allocatable components, but it was possible nonetheless to have the same performances back then.

---

<div class="post-metadata">

**Author:** ![FortranFan](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FortranFan](https://fortran-lang.discourse.group/u/FortranFan)\
**Post date:** [September 4, 2023, 10:39pm UTC](https://fortran-lang.discourse.group/t/using-reserved-words-as-variables/6398/63 "2023-09-04T22:39:42Z")

</div>

> [@RonShepard](#):
>
> … When allocatables were allowed (as dummy arguments and derived type components), I switched, picked up as much as a 2x speed improvement …

A huge problem in the Fortran ecosystem is the vagueness re: performance. Many of the claims are highly questionable and the actual practices in codes vary widely and **myths** too appear to drive choices.

It’s a sad state even now.

[Previous page](https://fortran-lang.discourse.group/t/using-reserved-words-as-variables/6398.md?page=3)
