summaryrefslogtreecommitdiff
path: root/sources/examples/auction.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2004-02-23 13:07:27 +0000
committermichelou <michelou@epfl.ch>2004-02-23 13:07:27 +0000
commit192afdc3cafd6efc7ceb3deebf3f3591cb71c154 (patch)
tree50e0a3c6bd99848d9eeb545bf249df159acd4080 /sources/examples/auction.scala
parent4fa1acc175ae3f49230dd41febc864b90232afb6 (diff)
downloadscala-192afdc3cafd6efc7ceb3deebf3f3591cb71c154.tar.gz
scala-192afdc3cafd6efc7ceb3deebf3f3591cb71c154.tar.bz2
scala-192afdc3cafd6efc7ceb3deebf3f3591cb71c154.zip
- program entry 'testAuction' renamed to filename.
Diffstat (limited to 'sources/examples/auction.scala')
-rw-r--r--sources/examples/auction.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/examples/auction.scala b/sources/examples/auction.scala
index ecf121ef7d..c6ab223375 100644
--- a/sources/examples/auction.scala
+++ b/sources/examples/auction.scala
@@ -68,7 +68,7 @@ class Auction(seller: Actor, minBid: int, closing: Date) extends Actor {
// ---- Test -------------------------------------------------------------
-object testAuction {
+object auction {
val random = new java.util.Random();
@@ -82,7 +82,7 @@ object testAuction {
def client(i: int, increment: int, top: int) = new Actor {
val name = "Client " + i;
- def log(msg: String) = System.out.println(name + ": " + msg);
+ def log(msg: String) = Console.println(name + ": " + msg);
var running = true;
var max: int = _;
var current: int = 0;