Skip to content

Commit

Permalink
Tweak examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurp committed Aug 25, 2016
1 parent 99f7729 commit e321d4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion OrcExamples/orco_paper/sec5-1_event_handling.orc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()

|}
3 changes: 2 additions & 1 deletion OrcExamples/orco_paper/sec5-4_composing_objects.orc
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,6 @@ onRequest() >r> {|
val db = database
}).handle(r)) |
r.onDisconnect()
|}
|} >> stop ;
database.queryChannel.close()

0 comments on commit e321d4b

Please sign in to comment.