After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 611460 - Closures for argument-less signal handlers dont work as expected
Closures for argument-less signal handlers dont work as expected
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: Genie
0.7.x
Other Linux
: Normal normal
: ---
Assigned To: Jamie McCracken
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-01 10:05 UTC by Felix Wolfsteller
Modified: 2018-05-22 13:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sample code to demonstrate misbehaving event handlers in closures (955 bytes, application/octet-stream)
2010-03-01 10:05 UTC, Felix Wolfsteller
Details

Description Felix Wolfsteller 2010-03-01 10:05:11 UTC
Created attachment 154937 [details]
Sample code to demonstrate misbehaving event handlers in closures

In Genie with javac 0.7.10, for an event that does not take arguments, like

event empty_event ()

I fail to register a "closured" signal handler that can access its context, like

var s = "string"
emitter.empty_event += def handle
  print s

Sample code is attached.
Other minor issues (parsing, I guess), can be seen in the sample code too. I assume that there is a common underlying source. If it happens to be separete issue, kindly ask me to report as a separate bug.
Comment 1 GNOME Infrastructure Team 2018-05-22 13:30:33 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/76.