News for hackers. Stuff that matters.
Re:The Pike Programming Language by fernly on Friday July 05, 2019 @10:22PM (#20367344)
That's very typical of programs using a GUI platform. One way or another you have to kick off an event handler, whether it's TKinter or Qt or in this case, GTK. The event handler runs independent of your code and has to be told when to quit. I have to agree that

    GTK.Alert("Hello world!")
    -> signal_connect("destroy", lambda(){ exit(0); });
does seem to be less than intuitive and not a pretty thing to drop into a hello-world tutorial!
Re:The Pike Programming Language by hermitdev on Friday July 05, 2019 @10:38PM (#20367410)
Yes, registering events in a GUI is common, but for a "Hello world!" to shutdown? Never seen it needed for something that simple.
Re:The Pike Programming Language by mpcjanssen on Saturday July 06, 2019 @01:42AM (#20368141)
The cli hello world exits with the main return value.