diff --git a/OrcExamples/orco_paper/sec5-1_event_handling.orc b/OrcExamples/orco_paper/sec5-1_event_handling.orc index c9d165c0b..583dac37a 100644 --- a/OrcExamples/orco_paper/sec5-1_event_handling.orc +++ b/OrcExamples/orco_paper/sec5-1_event_handling.orc @@ -25,7 +25,7 @@ class GUI { queryButton.setEnabled(false) >> resultsList.clear() >> db.query(queryEntry.getText()) >r> - resultsList.add(r) >> stop ; + resultsList.add(r) >> Println(r) >> stop ; queryButton.setEnabled(true) }) -- Initialization event handling @@ -49,6 +49,7 @@ val gui = new GUI { val db = new Database } +Println("The database only includes values 'a', 'b', and 'c'.") >> stop | gui.frame.onClosing() |} \ No newline at end of file diff --git a/OrcExamples/orco_paper/sec5-4_composing_objects.orc b/OrcExamples/orco_paper/sec5-4_composing_objects.orc index d36711386..1dc817fda 100644 --- a/OrcExamples/orco_paper/sec5-4_composing_objects.orc +++ b/OrcExamples/orco_paper/sec5-4_composing_objects.orc @@ -102,5 +102,6 @@ onRequest() >r> {| val db = database }).handle(r)) | r.onDisconnect() -|} +|} >> stop ; +database.queryChannel.close()