code |
from the mailing list by Vadim Lebedev <vadim@mbdsys.com>:
> We have corrected this now. The new, updated version of the paper is
> found at the same place at the old -- it is the first entry on
> http://scala.epfl.ch/docu/index.html
> Cheers
> -- Martin
>
It seems i found a mistake in this document on Page 12:
======================
abstract class SyncIterator extends AbsIterator {
abstract override def hasNext: boolean =
synchronized(super.hasNext)
abstract override def next: T =
synchronized(super.next)
}
StringIterator(someString) with RichIterator
with SyncIterator
==========================
on previous page it is said that only traits could be used as mixins
so why SyncIterator is not declared as trait?
Vadim
|