From owner-sc22wg5@dkuug.dk  Wed Aug 13 10:05:44 2003
Received: (from majordom@localhost)
	by dkuug.dk (8.12.8p1/8.9.2) id h7D85i9s063156
	for sc22wg5-domo; Wed, 13 Aug 2003 10:05:44 +0200 (CEST)
	(envelope-from owner-sc22wg5@dkuug.dk)
X-Authentication-Warning: ptah.dkuug.dk: majordom set sender to owner-sc22wg5@dkuug.dk using -f
Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80])
	by dkuug.dk (8.12.8p1/8.9.2) with ESMTP id h7D85bEc063149
	for <sc22wg5@dkuug.dk>; Wed, 13 Aug 2003 10:05:39 +0200 (CEST)
	(envelope-from michael.metcalf@t-online.de)
Received: from fwd07.aul.t-online.de 
	by mailout01.sul.t-online.com with smtp 
	id 19mqd9-0000dC-03; Wed, 13 Aug 2003 10:05:15 +0200
Received: from metcalf (TlwBjTZTre0M1XwGtHu4P5TbH-cjVLs+j-9YyOmol7l-F83sqj8Vc0@[217.230.187.246]) by fwd07.sul.t-online.com
	with smtp id 19mqcy-0PbTLE0; Wed, 13 Aug 2003 10:05:04 +0200
Message-ID: <005001c36171$f8ad1fc0$2546fea9@metcalf>
Reply-To: "Michael Metcalf" <michaelmetcalf@compuserve.com>
From: michael.metcalf@t-online.de (Michael Metcalf)
To: "Fortran 90 List" <COMP-FORTRAN-90@JISCMAIL.AC.UK>, <sc22wg5@dkuug.dk>
Subject: Fw: New ISO_VARYING_STRING implementation (without memory leaks)
Date: Wed, 13 Aug 2003 10:07:42 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Seen: false
X-ID: TlwBjTZTre0M1XwGtHu4P5TbH-cjVLs+j-9YyOmol7l-F83sqj8Vc0
Sender: owner-sc22wg5@dkuug.dk
Precedence: bulk

FYI.

Mike Metcalf

----- Original Message ----- 
From: "Richard Townsend" <rhdt@star.ucl.ac.uk>
Newsgroups: comp.lang.fortran
Sent: 12 August 2003 22:37
Subject: New ISO_VARYING_STRING implementation (without memory leaks)


>
> Dear All,
>
> I've just finished implementing an ISO_VARYING_STRING module, conformant
> to ISO/IEC 1539-2:1999, to enable the use of varying-length strings in
> Fortran 95. Although there are already implementations of this module
> available on the web (for instance,
>
ftp://ftp.nag.co.uk/sc22wg5/ISO_VARYING_STRING/Sample_Module/iso_vst.f95.gz),
> these appear to have a problem with memory leaks.
>
> To avoid the possibility of leaks, my implementation of the module relies
> upon ISO/IEC TR15581, the "official"  extension to Fortran 95 which
> permits allocatable derived-type components. While I'm no Fortran expert,
> I'd be prepared to stake quite a bit of money that my implementation won't
> leak memory on any non-broken compiler. Of course, the compiler will have
> to support TR 15581; but nowadays most appear to do so, the Intel Fortran
> compiler being a notable exception (hint hint, please sort that out,
> Intel!)
>
> I'm releasing the module under the GPL, with the hope that some may find
> it useful and/or correct my bugs and/or laugh at my coding style and/or
> optimize it (its currently written for simplicity, not speed). If anyone
> in this NG works for a compiler vendor, and wants to bundle it with their
> product but can't due to the GPL, I'd be more than happy to release it
> under a different licence -- just drop me an email.
>
> The source code for the module can be downloaded here:
>
> http://www.star.ucl.ac.uk/~rhdt/download/#iso
>
> (please feel free to put up mirror copies)
>
> cheers,
>
> Rich
>
> -- 
>
+-----------------------------------+-------------------------------------+
> | Dr Richard Townsend               |
|
> | Department of Physics & Astronomy |   Do not send me HTML-formatted
|
> | University College London         |     messages; they go directly to
|
> | Gower Street                      |        my spam folder, and will
|
> | London WC1E 6BT                   |           not be read...
|
> | Work: +44 20 7419 3410            |
|
> | Mob.: +44 7703 439 009            |
|
>
+-----------------------------------+-------------------------------------+
>

