Skip to main content
Log in

A note on the for statement

  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

Abstract

This note discusses methods of defining the for statement in high level languages and suggests a proof rule intended to reflect the proper role of a for statement in computer programming. It concludes with a suggestion for possible generalisation.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+
from $39.99 /Month
  • Starting from 10 chapters or articles per month
  • Access and download chapters and articles from more than 300k books and 2,500 journals
  • Cancel anytime
View plans

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. N. Wirth,The Programming Language PASCAL, Acta Informatica 1.1 (1971), 35–63.

    Google Scholar 

  2. N. Wirth and C. A. R. Hoare,A contribution to the development of ALGOL, C.A.C.M. 9.6 (June 1966).

  3. A. van Wijngaarden (ed.),Report on the Algorithmic Language ALGOL 68, Numerische Mathematik 14 (1969), 79–218.

  4. C. A. R. Hoare,An Axiomatic Approach to Computer Programming, C.A.C.M. 12. 10 (Oct. 1969), 576–580, 583.

    Google Scholar 

  5. R. W. Floyd,Assigning Meanings to Programs, Proc. Amer. Math. Soc. Symposium in Applied Mathematics, Vol. 19, pp. 19–31.

  6. P. Naur,Proof of Algorithms by General Snapshots, BIT 6 (1966), 310–316.

    Google Scholar 

  7. C. A. R. Hoare,Cleaning up the For Statement, ALGOL Bulletin 21.3.4 (July 1965), 32–35.

  8. C. A. R. Hoare,Subscript Optimisation and Subscript Checking, ALGOL Bulletin 29.3.6 (Nov. 1968), 33–44.

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Hoare, C.A.R. A note on the for statement. BIT 12, 334–341 (1972). https://doi.org/10.1007/BF01932305

Download citation

  • Received:

  • Issue date:

  • DOI: https://doi.org/10.1007/BF01932305

Keywords