diff options
author | paltherr <paltherr@epfl.ch> | 2003-07-10 12:59:58 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-07-10 12:59:58 +0000 |
commit | 0e5eaf6fbd4e15a7d8fee50363d67a5bd1f81829 (patch) | |
tree | d685a0bd5431fbc357678083d1405b46612dec06 /test/files/run/Course-2002-08.scala | |
parent | 808974e3492160faea5a0e085b4bb709e1457b65 (diff) | |
download | scala-0e5eaf6fbd4e15a7d8fee50363d67a5bd1f81829.tar.gz scala-0e5eaf6fbd4e15a7d8fee50363d67a5bd1f81829.tar.bz2 scala-0e5eaf6fbd4e15a7d8fee50363d67a5bd1f81829.zip |
- Removed some .apply
Diffstat (limited to 'test/files/run/Course-2002-08.scala')
-rw-r--r-- | test/files/run/Course-2002-08.scala | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/files/run/Course-2002-08.scala b/test/files/run/Course-2002-08.scala index ae39aeb90f..b821caa140 100644 --- a/test/files/run/Course-2002-08.scala +++ b/test/files/run/Course-2002-08.scala @@ -517,15 +517,15 @@ abstract class CircuitSimulator() extends BasicCircuitSimulator() { val ctrlN = ctrl.map(w => { val iw = new Wire(); inverter(w,iw); iw}); val w0 = new Wire(), w1 = new Wire(), w2 = new Wire(), w3 = new Wire(); - andGate(in, ctrl.apply(1), w3); - andGate(in, ctrl.apply(1), w2); - andGate(in, ctrlN.apply(1), w1); - andGate(in, ctrlN.apply(1), w0); + andGate(in, ctrl(1), w3); + andGate(in, ctrl(1), w2); + andGate(in, ctrlN(1), w1); + andGate(in, ctrlN(1), w0); - andGate(w3, ctrl.apply(0), out.apply(3)); - andGate(w2, ctrlN.apply(0), out.apply(2)); - andGate(w1, ctrl.apply(0), out.apply(1)); - andGate(w0, ctrlN.apply(0), out.apply(0)); + andGate(w3, ctrl(0), out(3)); + andGate(w2, ctrlN(0), out(2)); + andGate(w1, ctrl(0), out(1)); + andGate(w0, ctrlN(0), out(0)); } def connect(in: Wire, out: Wire) = { @@ -566,13 +566,13 @@ class Main() extends CircuitSimulator() { in.setSignal(true); run; - ctrl.apply(0).setSignal(true); + ctrl(0).setSignal(true); run; - ctrl.apply(1).setSignal(true); + ctrl(1).setSignal(true); run; - ctrl.apply(2).setSignal(true); + ctrl(2).setSignal(true); run; - ctrl.apply(0).setSignal(false); + ctrl(0).setSignal(false); run; } } |