-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 21 February 2007 13:04 pm, Gottlob Frege wrote:
So, for example, foo is what we want to track, but bar (somehow inside of foo) is what we want to bind/call? Shouldn't that all happen on the same function call:
signal.connect(bind(bar, func), foo) // pass foo in as the object that guarantees bar's lifetime.
So a 'guarantor' parameter.
Is that what you mean?
If so, I'd like that to be part of the conenct as opposed to a separate function. Tony
Yes, I suggested a member function on the connection because that allows you to add an arbitrary number of tracked objects to a connection. If they are passed as parameters to connect, you are either limited to tracking a single object (or fixed number with default parameters), have to pass the objects in a container, or have to make connect a variadic function. - -- Frank -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFF3JG+5vihyNWuA4URAq+/AJwOEkM/jwOM80Jb0uqRPpcrSp6lEACfSHhi t9FAwmDoIW4OCH0klInCviU= =iErz -----END PGP SIGNATURE-----