google-code-export / nativelibs4java

Automatically exported from code.google.com/p/nativelibs4java
1 stars 1 forks source link

Seq of functions in ScalaCL map returns unexpected results #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

1. Run `(1 to 10).map {i => j: Int => i + j}.map(_(10))`

What is the expected output? What do you see instead?
When ScalaCL HAS NOT been installed via sbaz, I see the following, correct 
result:
scala.collection.immutable.IndexedSeq[Int] = Vector(11, 12, 13, 14, 15, 16, 17, 
18, 19, 20)

When ScalaCL HAS been installed via sbaz, I see the following, incorrect result:
scala.collection.immutable.IndexedSeq[Int] = Vector(21, 21, 21, 21, 21, 21, 21, 
21, 21, 21)

What version of the product are you using? On what operating system?
scalacl/0.2.Beta8 on OS X 10.6

If the JVM crashes, please attach the  hs_err_pidXXX.log crash report file
written by the JVM.

Original issue reported on code.google.com by Stephen....@gmail.com on 1 Feb 2011 at 8:35

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Stephen,

Thanks a lot for your report, this is a very interesting issue !
(will investigate this ASAP)

Cheers
--
Olivier

Original comment by olivier.chafik@gmail.com on 1 Feb 2011 at 9:03

GoogleCodeExporter commented 9 years ago
Hello,

This is fixed by revision #1628, deployed as new 0.2-SNAPSHOT (Maven). Version 
0.2.Beta10 (Maven + sbt) should also be out tonight.

Thanks again for your report (hehe, I'd love to see more like this one : 
absolutely critical yet easy to fix ;-))

Cheers
--
zOlive

Original comment by olivier.chafik@gmail.com on 2 Feb 2011 at 5:39