{"title":"A reference counting implementation in Fortran 95/2003","authors":"David Car","doi":"10.1145/1753166.1753168","DOIUrl":null,"url":null,"abstract":"This paper outlines a reference counting programming pattern for derived types in Fortran 95/2003. Modern object oriented languages like Java [1, 3] and Python [2, 6] use reference counting to free the programmer from the concern of object allocation and deallocation, thus making possible memory leaks almost obsolete. The reference counting pattern outlined here is being used with the PyF95++ pre-processor [5] and the accompanying Standard Template Library. All the containers in that project are reference counted containers and employ this pattern. The result of this pattern is something akin to an auto ptr template class in C++ [4].","PeriodicalId":379614,"journal":{"name":"ACM SIGPLAN Fortran Forum","volume":"37 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2010-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"5","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM SIGPLAN Fortran Forum","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/1753166.1753168","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 5
Abstract
This paper outlines a reference counting programming pattern for derived types in Fortran 95/2003. Modern object oriented languages like Java [1, 3] and Python [2, 6] use reference counting to free the programmer from the concern of object allocation and deallocation, thus making possible memory leaks almost obsolete. The reference counting pattern outlined here is being used with the PyF95++ pre-processor [5] and the accompanying Standard Template Library. All the containers in that project are reference counted containers and employ this pattern. The result of this pattern is something akin to an auto ptr template class in C++ [4].