1 Apr 2006 18:31
verify error? and non-strict parameter notation
Sven Eric Panitz <order <at> panitz.name>
2006-04-01 16:31:54 GMT
2006-04-01 16:31:54 GMT
Hello all. After some months I eventually found time to play a bit around with scala again. Two things I came across today: 1) Unfortunately, when running one of my scala programs I get a verify error: java.lang.VerifyError: (class: name/panitz/ki/InformedSlide$$anonfun$0, method: apply signature: (I)V) Illegal use of nonvirtual function call I wonder if this could possibly be due to a compiler error (or maybe I did something stupid)? I checked the bug data base, but could not find any similar reports. Does this look like something known, or shoud I try to prepare a proper bug report? 2) When I did some scala programming last year, it was possible to mark parameters as non strict by way of the keyword def. A function definition like: def cond(a:Boolean,def x:Int,def y:Int)= if (a) x else y was possible. This seems no longer to be valid scala, however I did not find any mentioning about this in the change logs. Is there a new way to have non-strict function parameters apart from defining them as function: def cond(a:Boolean,x:()=>Int,y:()=>Int)= if (a) x() else y() Sven Eric -- --(Continue reading)
RSS Feed