values cannot be volatile
Jonathan Willis <[email protected]>
| Newsgroups | gmane.comp.lang.scala |
|---|---|
| Message-ID | <[email protected]> |
I notice there is a ticket for the compiler not properly handling volatile
fields in case classes: https://issues.scala-lang.org/browse/SI-8873. What
version of scala will address this problem? My scala version is 2.11.7 and
here is my case class:
case class Player(@volatile var hand: Hand,
var deck: Deck,
var discards: Discards,
var actions: Int,
var score: Int,
var money: Int) {
}
--
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.