This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: New VEC API
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Daniel Berlin <dberlin at dberlin dot org>
- Date: Thu, 21 Apr 2005 21:51:51 -0400
- Subject: Re: New VEC API
- Organization: Red Hat Canada
- References: <42612B2D.20603@codesourcery.com>
On Sat, Apr 16, 2005 at 04:11:41PM +0100, Nathan Sidwell wrote:
> And use them as
> VEC(tree,none) *v; // I'll explicitly manage the allocation
> VEC(tree,gc) *v; // please gc allocate it
> VEC(tree,heap) *v; // please heap allocate it.
>
I think I hate it even more than the previous API. More arguments!
But, I realize that there is little we can do about this in C.
Here's hoping that we start accepting C++ code in the compiler.
Diego.