diff options
author | michelou <michelou@epfl.ch> | 2004-07-14 13:00:27 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2004-07-14 13:00:27 +0000 |
commit | d30eb65e9df0de80bccb5ba44cb69205c20a8d92 (patch) | |
tree | 668c0f8f19c415604474eccd1a8dd58d82ce9284 /sources/examples/jolib | |
parent | 501341ca37f00ca4a4ea302cd863fd58cebd80be (diff) | |
download | scala-d30eb65e9df0de80bccb5ba44cb69205c20a8d92.tar.gz scala-d30eb65e9df0de80bccb5ba44cb69205c20a8d92.tar.bz2 scala-d30eb65e9df0de80bccb5ba44cb69205c20a8d92.zip |
- commented out obsolete code parts.
Diffstat (limited to 'sources/examples/jolib')
-rw-r--r-- | sources/examples/jolib/Ref.scala | 6 | ||||
-rw-r--r-- | sources/examples/jolib/parallelOr.scala | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/sources/examples/jolib/Ref.scala b/sources/examples/jolib/Ref.scala index 149f83efe8..73cc167307 100644 --- a/sources/examples/jolib/Ref.scala +++ b/sources/examples/jolib/Ref.scala @@ -8,7 +8,7 @@ \* */ package examples.jolib; - +/* import concurrent.SyncVar; import concurrent.jolib._; @@ -30,11 +30,12 @@ class Ref[a](init: a) extends Join { def Get: a = get(get.C()); def Set(x: a): unit = set(set.C(x)); } - +*/ object RefTest { def main(args: Array[String]) = { System.out.println("Started."); +/* concurrent.ops.spawn({ val r1 = new Ref(0); System.out.println("Reference r1 created."); @@ -49,6 +50,7 @@ object RefTest { r2.Set(89); System.out.println("Value r2 (second time) = " + r2.Get); }); +*/ } } diff --git a/sources/examples/jolib/parallelOr.scala b/sources/examples/jolib/parallelOr.scala index 620cf28212..c81de6b0e0 100644 --- a/sources/examples/jolib/parallelOr.scala +++ b/sources/examples/jolib/parallelOr.scala @@ -8,7 +8,7 @@ \* */ package examples.jolib; - +/* import concurrent.jolib._; import concurrent.SyncVar; @@ -41,17 +41,19 @@ object or extends Join { res(res.C()) } } - +*/ object parallelOr { def main(args: Array[String]): unit = { def loop: boolean = { while (true) {}; true }; +/* System.out.println("true || true = " + or(true, true)); System.out.println("false || false = " + or(false, false)); System.out.println("false || true = " + or(false, true)); System.out.println("true || false = " + or(true, false)); System.out.println("true || loop = " + or(true, loop)); System.out.println("loop || true = " + or(loop, true)); +*/ } } |