phobosx.signal ready
David
d at dav1d.de
Sun Jul 21 04:24:41 PDT 2013
Ok, I came around to test it, finally.
A few things:
* I don't like the separation between connect/strongConnect
* I would like to bind a strongConnect to a class, if the class is gone
the strongConnect should be gone, too. E.g.
"window.single_key_down[JUMP].strongConnect({ physics.jump(); });"
physics is a class variable, this will blow up once the class holding it
is gone
* I don't like the connect api for class-method connects, I write all
the time "window.on_mouse_pos.connect!"on_mouse_pos"(this);" (the this
is kinda annoying), doesn't something like signal.connect!(bla)() work,
with an alias template param?
* Why is there no convenience class for Signal? Since the copy
constructor is disabled, I have to use a pointer, not a big deal, but a
class would be more convenient.
Other than that! Great job, I had not a single segfault so far (only 3
"starts" so far though :>)
More information about the Digitalmars-d-announce
mailing list