[seed] Update repl example style
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Update repl example style
- Date: Tue, 28 Apr 2009 16:11:37 -0400 (EDT)
commit 8ba45bc2f599e6c877345fb710f3fef3545e758b
Author: Robert Carr <racarr svn gnome org>
Date: Tue Apr 28 16:04:58 2009 -0400
Update repl example style
---
examples/repl.js | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/examples/repl.js b/examples/repl.js
index 2c5f970..afe888a 100755
--- a/examples/repl.js
+++ b/examples/repl.js
@@ -2,15 +2,12 @@
readline = imports.readline;
-while(1)
-{
- try
- {
+while(1){
+ try{
item = readline.readline("> ");
Seed.print(eval(item));
}
- catch(e)
- {
+ catch(e){
Seed.print(e.name + " " + e.message);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]