From owner-sc22wg5@open-std.org  Mon Dec  8 19:59:50 2008
Return-Path: <owner-sc22wg5@open-std.org>
X-Original-To: sc22wg5-dom7
Delivered-To: sc22wg5-dom7@www2.open-std.org
Received: by www2.open-std.org (Postfix, from userid 521)
	id 3DFFAC178E0; Mon,  8 Dec 2008 19:59:50 +0100 (CET)
X-Original-To: sc22wg5@open-std.org
Delivered-To: sc22wg5@open-std.org
Received: from nspiron-1.llnl.gov (nspiron-1.llnl.gov [128.115.41.81])
	by www2.open-std.org (Postfix) with ESMTP id 43EB4C178DC
	for <sc22wg5@open-std.org>; Mon,  8 Dec 2008 19:59:48 +0100 (CET)
X-Attachments: None
Received: from cyrus2.llnl.gov ([128.15.97.105])
  by nspiron-1.llnl.gov with ESMTP; 08 Dec 2008 10:59:48 -0800
From: Aleksandar Donev <donev1@llnl.gov>
Organization: LLNL
To: "WG5, " <sc22wg5@open-std.org>
Subject: Re: (j3.2006) (SC22WG5.3767)   Response on the TR29113 draft N1761
Date: Mon, 8 Dec 2008 10:59:47 -0800
User-Agent: KMail/1.9.4
References: <20081207203535.92039C178D6@www2.open-std.org> <20081208183121.F21E4C178E4@www2.open-std.org> <20081208185558.714D4C178DC@www2.open-std.org>
In-Reply-To: <20081208185558.714D4C178DC@www2.open-std.org>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200812081059.48018.donev1@llnl.gov>
Sender: owner-sc22wg5@open-std.org
Precedence: bulk

On Monday 08 December 2008 10:55, Reinhold Bader wrote:
> =A0 =A0Could one not apply the same argument to C_LOC() itself? Why was
> =A0 =A0a polymorphic argument to C_LOC() disallowed?
Because, the way "handles" were envisioned is that you take a=20
non-interoperable object, do C_LOC to get a handle, and then do=20
C_F_POINTER later to get back to the object. You can allow a=20
polymorphic or an object with type-parameters, but then the handle is=20
incomplete (only has an address but no type info), and so it is not=20
possible to reconstruct the object from the handle later. So the=20
feature would be useless and only a source of bugs. If you can think of=20
a good use, do speak up :-)
Best,
Aleks

=2D-=20
Aleksandar Donev, Ph.D.
Lawrence Postdoctoral Fellow @ Lawrence Livermore National Laboratory
High Performance Computational Materials Science and Chemistry
E-mail: donev1@llnl.gov
Phone: (925) 424-6816  Fax: (925) 423-0785
Address: P.O.Box 808, L-367, Livermore, CA 94551-9900
Web: http://cherrypit.princeton.edu/donev
