polymorph.d: polymorphic refcounted wrappers for D structs

rikki cattermole via Digitalmars-d digitalmars-d at puremagic.com
Sat May 14 05:37:46 PDT 2016


On 15/05/2016 12:25 AM, Lodovico Giaretta wrote:
> 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

So a little bit like my managed memory[0] concept only with more magic 
and less extendable.

[0] 
https://github.com/rikkimax/alphaPhobos/blob/master/source/std/experimental/memory/managed.d


More information about the Digitalmars-d mailing list