This page is not available in requested lang, reverting to default lang
NOT IMPLEMENTED YET !
Signal/Slot
As in QT's signal slot, one can write :
class A { public constructor() { this.f.connect(this.mySlot); } public signal sub f();
public sub mySlot() { // will be called whenever f get called (or emitted in QT's terminology) } }
Signal/Slot concept is not rock solid yet. Some questions remains : What about methods having same name and different signatures ? Do we have to introduce the concept of methods signature in the language ?
More information
See this bug report
It seems like signal/slot could be introduced quite easily in the language provided that tuples exist and we transform methods into first class object when used as a slot. See this post
NOT IMPLEMENTED YET !
No comments yet