Workaround for typeid access violation
Etienne via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jun 16 13:30:49 PDT 2015
On Tuesday, 16 June 2015 at 20:08:36 UTC, rsw0x wrote:
> You're attempting to use GC for a problem that they don't solve
> because you don't have other tools to fix it. When all you have
> is a hammer, everything looks like a nail.
Well no, I have plenty of tools. I use a memory library that does
a wide range of everything I need
https://github.com/etcimon/memutils .. It's not like I'm reliant
only on it, like it's my hammer and I only see nails..
It's simply easier to manage the lifetime of objects through the
GC because sometimes I have them referred to as delegates at a
lower level. I like having finalizers because those objects may
hold thread-local containers.
Isn't that what we'd want? To use the GC only when it's important
and manual memory management at other times? What happens when
you need the two and your manually allocated objects are tracked
by a GC-allocated object? Well I'm experimenting a solution here,
or am I wrong to do so? I know the behavior is undefined in the
docs, but I didn't post this in D.learn did I?
I think you're the one who's actually looking at everything like
a nail wrt improving performance in benchmarks.
More information about the Digitalmars-d
mailing list