Aladdin - Scala Bugtracking
[#618] project: documentation priority: low category: bug
submitter assigned to status date submitted
Lex Martin fixed 2006-05-30 17:18:36.0
subject abstract class instead of trait inthe overview
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
what happened
what expected Vadim's reading seems correct to me. It should be a trait. -Lex
[back to overview]
Changes of this bug report
Lex  edited on  2006-05-30 17:50:01.0
Martin  edited on  2006-05-31 11:13:46.0