-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Saaa wrote:
>> The only way I've found so far to do static binding like you are talking
>> about is using string mixins.
> I need to rethink stuff a bit, but mixins might be the solution.
> 
>> My port of Atl's window classes uses a MFC
>> like message map:
>>
>> mixin messageMap!(
>>  msgRangeHdlr!(WM_MOUSEFIRST, WM_MOUSELAST, "wmMouseEvents"),
>>  msgHdlr!(WM_PAINT, "wmPaint"),
>>  msgHdlr!(WM_SIZE, "wmSize"),
>>  msgHdlr!(WM_KEYUP, "wmKeyUp"),
>>  msgHdlr!(WM_CHAR, "wmChar"),
>>
>>  msgHdlr!(WM_SHOWWINDOW, "wmShow"),
>>  msgHdlr!(WM_CLOSE, "wmClose"),
>>  msgHdlr!(WM_CREATE, "wmCreate")
>> );
>>
>> Having to put the classes method in a string is a bit ugly, but without
>> c++ style pointer to members I don't see any other way of doing it.
>>
>> If you want to have a look in more detail:
>>
>> http://www.sstk.co.uk/atlWinD.php
> The zip 404ed

Typeof. doh. fixed.

- --
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFKpuNnT9LetA9XoXwRAuutAKC0q9CzjrH37nOXhg5eJNaWMw1X8wCdFa0P
QNhCcfUJamdDdU2/n6LAg/U=
=B9aH
-----END PGP SIGNATURE-----

Reply via email to