compiler support added for precise GC

Jacob Carlborg doob at me.com
Mon Apr 16 23:26:41 PDT 2012


On 2012-04-16 22:42, Timon Gehr wrote:

> This could be fixed by introducing a simple language feature that allows
> a supertype to specify mixin templates that are 'inherited' by all
> subtypes.
>
> Eg:
>
> interface ISerializable {
> ubyte[] serialize();
>
> super mixin Serialize;
> }

Then it won't be possible to serialize third party types if they don't 
implements ISerializable. In this case, this solution is no better then 
manually registering types. Actually it's worse, since I can manually 
register third party types.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list