std.signals and malloc

eskimo jfanatiker at gmx.at
Sat Jan 19 10:39:59 PST 2013


The new implementation offers this possibility, with the strongConnect()
method. The old implementation wasn't able to do so, because a delegate
contains no type information about the context.

Best regards,

Robert
On Sat, 2013-01-19 at 16:28 +0100, David wrote:
> 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