polymorph.d: polymorphic refcounted wrappers for D structs

Lodovico Giaretta via Digitalmars-d digitalmars-d at puremagic.com
Sat May 14 05:25:30 PDT 2016


Hi,

I wrote this small module ( 
https://github.com/lodo1995/polymorph.d ), taking inspiration 
from Amaury Sechet's great talk at DConf ( 
http://dconf.org/2016/talks/sechet.html ).

I plan to use it in std.experimental.xml ( 
https://github.com/lodo1995/experimental.xml ) for the DOM 
hierarchy, to avoid the use of garbage collected classes.

Do you think that somethink like this (maybe done a bit better) 
may be worth having in the standard library?

Thank you in advance,

Lodovico Giaretta


More information about the Digitalmars-d mailing list