Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion ISO_C_BINDING / C interop question

Path: g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail
From: "Joost" <jv...@cam.ac.uk>
Newsgroups: comp.lang.fortran
Subject: Re: ISO_C_BINDING / C interop question
Date: 16 Feb 2006 23:31:19 -0800
Organization: http://groups.google.com
Lines: 22
Message-ID: <1140161479.062666.119390@g44g2000cwa.googlegroups.com>
References: <1140081461.150959.58000@g44g2000cwa.googlegroups.com>
   <1haurv6.3f0qzd1jti4l6N%nospam@see.signature>
   <1haut8z.1wm7qf21i1fug9N%nospam@see.signature>
NNTP-Posting-Host: 83.77.188.228
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1140161487 10342 127.0.0.1 (17 Feb 2006 07:31:27 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 17 Feb 2006 07:31:27 +0000 (UTC)
In-Reply-To: <1haut8z.1wm7qf21i1fug9N%nospam@see.signature>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: g44g2000cwa.googlegroups.com; posting-host=83.77.188.228;
   posting-account=9_FFuQ0AAAD13siRsrkyPECpExIBs19s


Richard E Maine wrote:
> Richard E Maine <nos...@see.signature> wrote:
>
> > hmm. Apparently you
> > can't apply c_loc to a string. That seems to me like an oversight.
> > Strings are special-cased specifically so that you can pass them to C
> > functions without copying them to arrays of char. But I don't see a
> > similar special case for c_loc.
>
> I just emailed the J3 list suggesting that the inability to do C_LOC on
> a string is an oversight that ought to be fixed (at least in f2008, and
> arguably that it might even be an obvious and simple enough oversight to
> merit an f2003 corrgendum item, though I don't at all know whether that
> will fly).

I hope this makes it as a F2003 corrigendum...

Many thanks,

Joost