std.signals and malloc

David d at dav1d.de
Sat Jan 19 07:28:07 PST 2013


Am 18.01.2013 12:27, schrieb eskimo:
> The magic comes from the fact, that a signal has weak reference
> semantics, which means if you drop all references to the target object,
> it won't be kept in memory because of the connected signal, instead the
> slot gets de-registered automatically. 
> 

What about weakref for objects and for nothing else? __traits/std.traits
and friends.

Using a class in my case makes not really sense.


More information about the Digitalmars-d mailing list