Re: new gc interface

Date view Thread view Subject view Author view

From: Alexandre Oliva (oliva@dcc.unicamp.br)
Date: Wed Jan 27 1999 - 04:13:00 EST


On Jan 25, 1999, Godmar Back <gback@marker.cs.utah.edu> wrote:

> + made the collector/allocator a true COM-like object. [1]

The more I see COM-like objects in Kaffe, the more I think we should
be using C++ and abstract base classes with virtual methods... The
effect is exactly the same, except that you don't need the `this'
pointer explicitly passed as the first argument.

> typedef struct _Collector {
> struct GarbageCollectorInterface_Ops *ops;
> } Collector;

Why isn't this just

typedef struct GarbageCollectorInterface_Ops *Collector;

?

-- 
Alexandre Oliva  http://www.dcc.unicamp.br/~oliva  aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:50 EDT