signal slots (new, fixed version)
Sean Kelly
sean at f4.ca
Wed Nov 1 07:23:43 PST 2006
Lutger wrote:
> Thomas Kuehne wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Kristian schrieb am 2006-11-01:
>>> Or if there were 'local object members' for classes, just like in
>>> C++. For example:
>>>
>>> class Foo {
>>> Bar m_obj; //automatically constructed & destroyed with 'Foo'
>>> };
>>
>> How about Object.notifyRegister and Object.notifyUnRegister? sample use:
>> http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.learn&artnum=5016
>>
>>
>> Thomas
>>
>>
>> -----BEGIN PGP SIGNATURE-----
>>
>> iD8DBQFFSKq/LK5blCcjpWoRAv0VAJ4hvZtQo+wZR64qRsgqlJVs29ZsSQCfe1Dt
>> Z9/vZzgRPHl79zJzViJIkMU=
>> =9HhU
>> -----END PGP SIGNATURE-----
>
> Oh crap I wish I knew about this undocumented feature before. Thank you
> this could be very useful, at least until weak references are part of
> the language.
It was added in DMD 170-172, so it hasn't been around for long.
Sean
More information about the Digitalmars-d-announce
mailing list